ipprint

Tiny helper for pretty-printing values in ghci console

Latest on Hackage:0.6

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Gleb Alexeyev

Tiny helper for pretty-printing values in ghci console

Usage example:

Prelude> let e = replicate 5 [1..14] -- value we want to print
Prelude> :m + IPPrint
Prelude IPPrint> pprint e
   [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
    [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
    [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
    [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
    [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]]

Terminal width support added by Jean-Marie Gaillourdet.

comments powered byDisqus