[Haskell-cafe] Embed Haskell

Erik Hesselink hesselink at gmail.com
Sun Apr 22 22:23:24 CEST 2012


Hi Rosario,

lhs2tex [1] has the '\eval' command. See section 12 of the manual.

Erik

[1] http://www.andres-loeh.de/lhs2tex/

On Sun, Apr 22, 2012 at 17:59, Rosario Borda <rosario.borda at sinervis.com> wrote:
> Hi All,
>
> Is there a simple method for embed haskell in other languages, like latex?
>
> An example in quasiquotation notation:
>
> \documentclass{article}
> \title{Hello World}
> \begin{document}
>   \maketitle
>   Hello world! and reversed: [haskell: putStrLn reverse "Hello, World!"]
> \end{document}
>
> Many thanks, :)
> Rosario
>
> _______________________________________________
> 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