From 3961dbc04464b60beac1cac9e60b6a72de7d8d4c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 18 May 2023 06:18:56 -1000 Subject: [PATCH] dev: ghci: disable color, which sometimes obscures pretty-printed output --- .ghci | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ghci b/.ghci index 2eb2566b6..76608f90d 100644 --- a/.ghci +++ b/.ghci @@ -1,7 +1,12 @@ :set prompt "ghci> " +import System.Environment +setEnv "NO_COLOR" "1" +-- TEMP +-- :m +*Hledger.Cli.Commands + -- https://github.com/cdepillabout/pretty-simple :set -package pretty-simple -:set -interactive-print=Text.Pretty.Simple.pPrint +:set -interactive-print=Text.Pretty.Simple.pPrintNoColor -- ghci commands to be run once at ghci startup -- http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/ghci-commands.html