on master help sign in
Fix doctest
commitf58694cc04cb8a8f32343ebe72627ccaa4fcd715 authorAndrzej Rybczak <andrzej@rybczak.net> dateSun 11 Jul 2021, 22:33 (5 years ago) parent043bffe
2 files changed+3−1
doctest.sh+2 src/Effectful/Error.hs+1−1
doctest.sh+2
@@ -11,6 +11,7 @@ doctest src \
1111 -XBangPatterns \
1212 -XConstraintKinds \
1313 -XDataKinds \
14+ -XDeriveFunctor \
1415 -XFlexibleContexts \
1516 -XFlexibleInstances \
1617 -XGADTs \
@@ -22,6 +23,7 @@ doctest src \
2223 -XRecordWildCards \
2324 -XRoleAnnotations \
2425 -XScopedTypeVariables \
26+ -XStandaloneDeriving \
2527 -XStrictData \
2628 -XTupleSections \
2729 -XTypeApplications \
src/Effectful/Error.hs+1−1
@@ -14,7 +14,7 @@ For example, if you want to catch an unchecked exception like
1414 let boom :: Eff es String
1515 boom = error "BOOM!"
1616 in
17− runIOE $ boom `E.catch` \(e :: ErrorCall) -> pure "caught some error"
17+ runEff $ boom `E.catch` \(e :: ErrorCall) -> pure "caught some error"
1818:}
1919"caught some error"
2020