mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
📝 catchException.
This commit is contained in:
parent
1c4a8d3d9b
commit
01c6d93111
@ -243,6 +243,9 @@ runParser Options{..} blob@Blob{..} = go
|
|||||||
_ -> fold syntax
|
_ -> 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
|
catchException :: ( Exc.Exception e
|
||||||
, Member IO r
|
, Member IO r
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user