[Haskell-cafe] Standard way to translate Haskell to other languages?
carter.schonwald at gmail.com
Thu Jan 2 04:19:14 UTC 2014
have you considered using GHCJS?
On Wed, Jan 1, 2014 at 11:08 PM, Joey <jmitdase at gmail.com> wrote:
> It would be hard, but the languages are nearly identical, so the
> translation is pretty trivial AST transforming. I'm also not looking to be
> complete: my main goal is sharing client and server-side code.
> Thanks to Malcolm Wallace for the haskell-src-extensions suggestion, it
> looks great.
> On 14-01-01 07:24 AM, Ömer Sinan Ağacan wrote:
>> Compiling Haskell to another language is huge effort, maybe instead of
>> this you can compile Haskell to JS using GHCJS or Fay, and then use
>> Elm FFI to use compiled Haskell functions.
>> Ömer Sinan Ağacan
>> 2014/1/1 Joey <jmitdase at gmail.com>:
>>> I'm looking at writing a simple Haskell to Elm translator. Thankfully,
>>> Elm compiler is in Haskell, so I'm just trying transforming syntax trees.
>>> 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
>>> The GHC API seemed useful for compiling, but it seems tricky to use, and
>>> 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
>>> Joey Eremondi
>>> Haskell-Cafe mailing list
>>> Haskell-Cafe at haskell.org
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe