Skip to content

Commit

Permalink
GHC 9.12 compat: ErrorCallWithLocation got deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Dec 24, 2024
1 parent 9a04d05 commit edee335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/FileMonitor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ checkDirectoryModificationTime dir mtime =
handleErrorCall :: a -> IO a -> IO a
handleErrorCall e = handle handler
where
handler (ErrorCallWithLocation _ _) = return e
handler (ErrorCall _) = return e

-- | Run an IO computation, returning @e@ if there is any 'IOException'.
--
Expand Down

0 comments on commit edee335

Please sign in to comment.