Search code examples
haskellocamlpretty-print

Haskell Equivalent of OCaml's Format library


Does Haskell have a library that does the same thing that OCaml's (Format library)? Or, what is the easiest way to pretty-print an abstract syntax tree in Haskell?

Thanks.


Solution

  • I really like using the wl-pprint package. It gives you loads of flexibility in very elegant code. See here for some nice documentation.