The funnyprint package

[ Tags: benchmark, library, mit, text ] [ Propose Tags ]

see FunnyPrint.funnyPrint.


[Skip to Readme]

Properties

Versions 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 repository head: git clone https://github.com/Pitometsu/funnyprint
Uploaded Mon Jun 6 14:01:35 UTC 2016 by netsu
Distributions NixOS:0.0.5
Downloads 256 total (9 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-06-06 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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