unison/unison-src/tests/type-application.u

12 lines
141 B
Plaintext

ability Foo where
foo : {Foo} Nat
type Wrap a = Wrap Nat
blah : Wrap {Foo} -> Nat
blah = cases
Wrap.Wrap n -> n + 1
> blah (Wrap 99)