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/gb__ Aug 10 '16
Ah yes, I was pretty sure there were cases it wouldn't cover (which is why I titled the post "approximating GADTs"), but no particular examples were springing to mind.
For the case you have here, something like this would work:
Unless I'm missing the point?