Haskell Equivalent to OCaml Format Library

Does Haskell have a library that does the same as OCaml ( Format Library )? Or, what is the easiest way to print beautiful abstract syntax trees in Haskell?

Thanks.

+4
source share
3 answers

I really enjoy using wl-pprint . This gives you flexibility in a very elegant code. See here for good documentation.

+9
source

Text.Printf , I think.

+1
source

Source: https://habr.com/ru/post/1332694/


All Articles