mirror of
https://github.com/sayo-hs/heftia.git
synced 2024-11-26 23:05:04 +03:00
[add] the Issue 12 Semantics Test to README.md.
This commit is contained in:
parent
03a43f09a6
commit
08f5cfe6a8
@ -99,6 +99,10 @@ $ cabal run exe:SemanticsZoo
|
||||
( runNonDet . runTell . elaborateWriter . runChooseH $ action ) = [(3,(3,True)),(4,(4,False))]
|
||||
( runTell . runNonDet . elaborateWriter . runChooseH $ action ) = (6,[(3,True),(4,False)])
|
||||
|
||||
# https://github.com/hasura/eff/issues/12
|
||||
interpret SomeEff then runCatch : ( runThrow . runCatch . runSomeEff $ action ) = Right "caught"
|
||||
runCatch then interpret SomeEff : ( runThrow . runSomeEff . runCatch $ action ) = Left "not caught"
|
||||
|
||||
[Note] All other permutations will cause type errors.
|
||||
$
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user