Skip to content

Commit

Permalink
Use catchIO in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
arybczak committed Oct 6, 2024
1 parent e2b1ffa commit 70e106f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion effectful-core/src/Effectful/Dispatch/Dynamic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ import Effectful.Internal.Utils
-- ReadFile path -> adapt $ IO.readFile path
-- WriteFile path contents -> adapt $ IO.writeFile path contents
-- where
-- adapt m = liftIO m `catch` \(e::IOException) -> throwError . FsError $ show e
-- adapt m = liftIO m `catchIO` \e -> throwError . FsError $ show e
-- :}
--
-- Here, we use 'interpret' and simply execute corresponding 'IO' actions for
Expand Down

0 comments on commit 70e106f

Please sign in to comment.