News for hackers. Stuff that matters.
Re:Language-agnostic schemas based on Haskell's type system by moomin on Saturday May 20, 2017 @03:17PM (#14383855)
Saying that something is like Haskell's type system raises more questions than it answers: are there GADTs? Type Families? Phantom Types?
Re:Language-agnostic schemas based on Haskell's type system by seagreen on Saturday May 20, 2017 @03:33PM (#14383945)
It's only like Haskell's type system compared to other schema languages (most of which don't even have product and sum types). Plate has parametric polymorphism, phantom types, and algebraic data types. It doesn't have typeclasses however (I don't see a way to implement them, thoughts here: https://github.com/seagreen/plate/issues/1#issuecomment-3028...) and so advanced Haskell features like type families are out.