r/purescript • u/gb__ • Aug 10 '16
Approximating GADTs in PureScript
http://code.slipthrough.net/2016/08/10/approximating-gadts-in-purescript/
20
Upvotes
r/purescript • u/gb__ • Aug 10 '16
View all comments
Show parent comment
2
u/gasche Aug 10 '16
For an easy example, you can just extend my example above with pairs:
As Oleg likes to say,
eval :: Expr a -> ais not a very good example of GADTs, you must use binary functions to really see the power and difficulties.