The current templates for functions and enumerations are haskell-src-exts syntax trees. Though they are simplified a bit by using functions from CodeGenerating this is still quite verbose and hardly legible. A better solution for both templates would be to use a quasiquoter for haskell syntax.
The current version of haskell-src-qq still does not support antiquoting in type situations which is needed.
The current templates for functions and enumerations are haskell-src-exts syntax trees. Though they are simplified a bit by using functions from CodeGenerating this is still quite verbose and hardly legible. A better solution for both templates would be to use a quasiquoter for haskell syntax.
The current version of haskell-src-qq still does not support antiquoting in type situations which is needed.