Skip to content

Draft: Add typeConstructorName function to template-haskell

Matthew Pickering requested to merge wip/lift-type-typeable into master

This helper function converts a Typeable type representation to a Template Haskell type. This can be used to construct type-driven Template Haskell programs.

For example ...

data User = User ...

makeLenses @User

deriveJSON @User

rather than accepting a Name which may not be from the type namespace.

Closes #20613

Edited by Andreas Klebinger

Merge request reports