1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

📝 catchException.

This commit is contained in:
Rob Rix 2018-04-03 16:22:28 -04:00
parent 1c4a8d3d9b
commit 01c6d93111

View File

@ -243,6 +243,9 @@ runParser Options{..} blob@Blob{..} = go
_ -> fold syntax
-- | Catch exceptions in 'IO' actions embedded in 'Eff', handling them with the passed function.
--
-- Note that while the type allows 'IO' to occur anywhere within the effect list, it must actually occur at the end to be able to run the computation.
catchException :: ( Exc.Exception e
, Member IO r
)