Created
June 5, 2020 22:23
-
-
Save benwr/a2eb775c9554643e77a229854be2a5f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- succeeds | |
| foo : if False then Nat else Bool | |
| foo = Z | |
| -- fails | |
| -- bar : if False then Nat else Bool | |
| -- bar = False | |
| -- succeeds | |
| baz : case S (S Z) of { Z => Nat; S Z => Bool; _ => Nat -> Bool } | |
| baz = Z | |
| -- fails | |
| -- qux : case S (S Z) of { Z => Nat; S Z => Bool; _ => Nat -> Bool } | |
| -- qux = \case | |
| -- _ => True | |
| -- fails | |
| -- qux : case S Z of { Z => Nat; S Z => Bool; _ => Nat -> Bool } | |
| -- qux = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment