th-pprint-0.2.0.0: Simplify and render Template Haskell

Safe HaskellSafe
LanguageHaskell2010

Language.Haskell.TH.Cleanup

Synopsis

Documentation

simplifiedTH :: [Dec] -> ExpQ Source #

Simplifies and pretty-prints declarations. Will give back a quoted string.

Can be used from GHCi like so:

putStrLn $(simplifiedTH =<< makePrisms ''Either)