开发者

Haskell Equivalent of OCaml's Format library

开发者 https://www.devze.com 2023-01-31 21:20 出处:网络
Does Haskell have 开发者_如何学JAVAa 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?

Does Haskell have 开发者_如何学JAVAa 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


Text.Printf, i guess.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号