[Haskell-beginners] Template Haskell: simple way to "declare" type and instance
Baa
aquagnu at gmail.com
Fri Dec 8 17:38:19 UTC 2017
Hello, All!
Is any way similar to templates (like in Crystal language, Rust, etc)
to create `data X = ...`, `instance Show ...`, etc in TH? I found this
tutorial https://wiki.haskell.org/A_practical_Template_Haskell_Tutorial
but all looks complicated. Or something like Lisp macros, may be some
modern library? Like quasy-quotations but for `data` and `instance`
declarations (I don't know is it possible even) ?
===
Best regards, Paul
More information about the Beginners
mailing list