Sometimes when I say types are first class in Idris, someone (quite reasonably) points out you can't pattern match on them. Well, here we go...https://gist.github.com/edwinb/25cd0449aab932bdf49456d426960fed …
-
-
Let’s bash a board sometime.
-
My current thinking is that if we're matching (a -> b), then on the RHS we have a : Type and b : a -> Type. This fits nicely with how the evaluator and compiler work, at least.
- 1 more reply
New conversation -
-
-
Leave it as an exercise for the reader :P
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.