Skip to content

Instantly share code, notes, and snippets.

@benwr
Created June 5, 2020 22:23
Show Gist options
  • Select an option

  • Save benwr/a2eb775c9554643e77a229854be2a5f2 to your computer and use it in GitHub Desktop.

Select an option

Save benwr/a2eb775c9554643e77a229854be2a5f2 to your computer and use it in GitHub Desktop.
-- 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