funnyprint

funnyPrint function to colorize GHCi output. https://github.com/Pitometsu/funnyprint#readme

Latest on Hackage:0.0.5

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.

MIT licensed
Maintained by Yuriy Pitomets

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

Changes

Change log

funnyprint uses Semantic Versioning. The change log is available through the releases on GitHub.

Depends on:
Used by 1 package:
comments powered byDisqus