ghc-source-gen is a library for generating Haskell source code.
It uses the ghc library
to support recent language extensions, and provides a simple, consistent
interface across several major versions of GHC.
To get started, take a look at the GHC.SourceGen module.
For more information, please see the README.