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.
I really like using the wl-pprint package. It gives you loads of flexibility in very elegant code. See here for some nice documentation.
Is Text.PrettyPrint what you are looking for?
http://www.haskell.org/haskellwiki/Applications_and_libraries/Compiler_tools#Pretty_printing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With