@hackage / ipprint

Tiny helper for pretty-printing values in ghci console

Latest0.6

About

Metadata

  • Last updated , by GlebAlexeyev
  • License BSD-3-Clause
  • Categories Text Processing
  • Maintained by: gleb.alexeev@gmail.com

  • Lottery factor: 0

Links

Installation

Readme

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.