[Haskell-cafe] Generating Haskell Code out of Haskell AST (GHC API)

Antoine Latter aslatter at gmail.com
Fri Jul 19 04:00:27 CEST 2013

The package haskell-src-exts is a lot less intimidating if all you are
trying to do is programmatically generate Haskell source:


The base types are here:

This module has some helper function for generating parts of the AST:

On Thu, Jul 18, 2013 at 1:11 PM, John Blackbox
<blackbox.dev.ml at gmail.com> wrote:
> Hi!
> I dont know GHC API very well, but I want to generate AST of a program using
> Is there any standard method to generate Haskell code out of it? (something
> like "print_this_for_me_please" function? :D
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list