[Haskell-cafe] Metaprogramming in Haskell vs. Ocaml

aditya siram aditya.siram at gmail.com
Fri Apr 2 22:56:23 EDT 2010

Hi all,
I would like to learn a little bit more about metaprogramming in
Haskell. And I'm also wondering why metaprogramming is used much more
in Ocaml than in Haskell.

Camlp4 (Ocaml's metaprogramming facility) doesn't seem to much more
powerful that Template Haskell. The former is celebrated in its
community as a killer feature of the language and its use is
encouraged by numerous accessible tutorials. The latter however is
down-played and not as well documented.

Seeing that the languages are parallel in many ways is there some
reason for this? Is metaprogramming less useful in Haskell? Is it
worth learning?

thanks ...

More information about the Haskell-Cafe mailing list