[Haskell-cafe] Standard way to translate Haskell to other languages?
jmitdase at gmail.com
Wed Jan 1 05:38:58 UTC 2014
I'm looking at writing a simple Haskell to Elm translator. Thankfully,
the Elm compiler is in Haskell, so I'm just trying transforming syntax
I'm wondering, is there a standard way to do this sort of thing?
Template Haskell looked promising, but it seems there isn't much of a
way to do introspection on function definition. Has there been any
work/progress on this?
The GHC API seemed useful for compiling, but it seems tricky to use, and
I haven't been able to find many tutorials for this sort of thing. I
could just be looking in the wrong place.
What are the ways I could go about this? Are there any similar projects
I could use as reference? What packages are useful for generating and
manipulating Haskell ASTs? Does anybody have experience in this area
they could share?
I've posted a similar question to the Haskell Reddit at
More information about the Haskell-Cafe