r/purescript • u/gb__ • Aug 10 '16
Approximating GADTs in PureScript
http://code.slipthrough.net/2016/08/10/approximating-gadts-in-purescript/
19
Upvotes
r/purescript • u/gb__ • Aug 10 '16
View all comments
2
u/rtpg Aug 11 '16
This is pretty similar to how you solve a lack of existential types: You carry around all the operations you might do on the type inside the data.