funnyprint: funnyPrint function to colorize GHCi output.

[ library, mit, text ] [ Propose Tags ] [ Report a vulnerability ]

see FunnyPrint.funnyPrint.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5
Change log CHANGELOG.md
Dependencies base (>=2 && <6), hscolour, ipprint (==0.6) [details]
License MIT
Author
Maintainer Yuriy Pitomets
Category Text
Home page https://github.com/Pitometsu/funnyprint#readme
Bug tracker https://github.com/Pitometsu/funnyprint/issues
Source repo head: git clone https://github.com/Pitometsu/funnyprint
Uploaded by netsu at 2016-06-06T14:01:35Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 3220 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-06-06 [all 1 reports]

Readme for funnyprint-0.0.5

[back to package description]

funnyprint

funnyPrint function to colorize GHCi output.


see FunnyPrint.funnyPrintC and FunnyPrint.funnyPrint.

Use it as :set -interactive-print=funnyPrint.

  • XTerm colors
  • UTF8 output
  • Simple indentation

Customize GHCi prompt in right way

see FunnyPrint.prompt and FunnyPrint.prompt2.

Usage example

You may use it like this:

:set -package funnyprint

:def color (\_ -> return (":set -interactive-print=FunnyPrint.funnyPrintC\n:set prompt \"" ++ FunnyPrint.prompt "λ " "%s" " ¬\\nλ > " ++ "\"" ++ "\n:set prompt2 \"" ++ FunnyPrint.prompt2 "λ" "" " | " ++ "\""))
:def nocolor (\_ -> return ":set -interactive-print=print\n:set prompt \"%s> \"\n:set prompt2 \"%s| \"")

:color

TODO:

  • replace ipprint with stylish-haskell