this post was submitted on 04 Oct 2023
4 points (100.0% liked)
Haskell
8 readers
1 users here now
**The Haskell programming language community.** Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more... ### Links - Get Started with Haskell
founded 1 year ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This gives a nice practical motivation for GADTs and existential quantification.
That sounds interesting. I can't easily imagine what that would look like. Do you have an example?
@jaror @bss03 Maybe I was wrong, but I think you can do Scott encoding of the GADT underneath the standard codensity representation of existentials via CPS. Still need higher-rank types, not "just" parametricity.
I should write up some code to check myself against GHC.