3 ms·
What are the problems with Template Haskell?
by archgoon 9y ago
What are the problems with Template Haskell?
- jeremyjh 9y agoAs an author of Template Haskell the expression trees you build are not constrained by types (other than Exp); you won't see a type error due to a problem in a Template Haskell function until you try to use that function in another module, and it produces Haskell code that in turn does not compile. As a user of Template Haskell functions you will mostly complain about the slow compilation time, the jarring syntax, poor documentation (since so much of Haskell documentation relies on types) and the error messages when you do something wrong.
- sridca 9y agoAlso Template Haskell is not supported by all Haskell implementations (eg: Reflex on mobile).