on master help sign in
Fix doctest
f58694cAndrzej Rybczak
doctest.sh+2
@@ -11,6 +11,7 @@ doctest src \
11 -XBangPatterns \
11 -XBangPatterns \
12 -XConstraintKinds \
12 -XConstraintKinds \
13 -XDataKinds \
13 -XDataKinds \
14+ -XDeriveFunctor \
14 -XFlexibleContexts \
15 -XFlexibleContexts \
15 -XFlexibleInstances \
16 -XFlexibleInstances \
16 -XGADTs \
17 -XGADTs \
@@ -22,6 +23,7 @@ doctest src \
22 -XRecordWildCards \
23 -XRecordWildCards \
23 -XRoleAnnotations \
24 -XRoleAnnotations \
24 -XScopedTypeVariables \
25 -XScopedTypeVariables \
26+ -XStandaloneDeriving \
25 -XStrictData \
27 -XStrictData \
26 -XTupleSections \
28 -XTupleSections \
27 -XTypeApplications \
29 -XTypeApplications \
src/Effectful/Error.hs+1−1
@@ -14,7 +14,7 @@ For example, if you want to catch an unchecked exception like
14 let boom :: Eff es String
14 let boom :: Eff es String
15 boom = error "BOOM!"
15 boom = error "BOOM!"
16 in
16 in
17− runIOE $ boom `E.catch` \(e :: ErrorCall) -> pure "caught some error"
17+ runEff $ boom `E.catch` \(e :: ErrorCall) -> pure "caught some error"
18:}
18:}
19"caught some error"
19"caught some error"
20
20