thtoexp alternatives and similar packages
Based on the "th" category.
Alternatively, view thtoexp alternatives based on common mentions on social networks and blogs.

thutilities
Collection of useful functions for use with Template Haskell 
thdesugar
Desugars Template Haskell abstract syntax to a simpler format without changing semantics 
thliftinstances
Lift instances for common haskell data types 
thextras
A grab bag of useful functions for use with Template Haskell 
thinstancereification
Fixed versions of instances reification functions 
thtypegraph
Building graphs of the template haskell subtype relation
Scout APM: A developer's best friend. Try free for 14days
Do you think we are missing an alternative of thtoexp or a related project?
README
thtoexp
thtoexp
is a package that provides a way to persist data from compiletime to runtime by producing Template Haskell expressions that evaluate to particular values. For example, if you have a value Just 1
, then toExp (Just 1)
will produce the expression [e Just 1 ]
, which can be used in a splice. For a more direct example, here’s what that looks like without the quasiquote notation:
> toExp (Just 1)
AppE (ConE GHC.Base.Just) (LitE (IntegerL 1))
This is done by using a typeclass, ToExp
, that can be automatically derived for types that have a Generic
instance.