Skip to content

Instantly share code, notes, and snippets.

@liarokapisv
Created January 6, 2018 12:23
Show Gist options
  • Save liarokapisv/dcd2b0108ab80d413e80d712650dc186 to your computer and use it in GitHub Desktop.
Save liarokapisv/dcd2b0108ab80d413e80d712650dc186 to your computer and use it in GitHub Desktop.
Case split
module Test
record Ann where
constructor MkAnn
ann1 : Type
data Test : Type where
MkTest : Test
AnnTest : Ann -> Type
AnnTest a = (Test , ann1 a)
TAnn : Ann
TAnn = MkAnn ()
-- this doesn't case split more
test : AnnTest TAnn -> ()
test (a, b) = ?test_rhs_1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment