summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2024-07-16 09:48:50 +0200
committertslil clingman <tslil@posteo.de>2024-07-16 10:15:51 +0200
commitebe1b6fc2ba9b9aa83f144cece774acb6300abec (patch)
tree486d2e57009b03e494fcc455702acbe2d2074470
parented836738a16efb7721b72f6aa58f07541fd37393 (diff)
[ghci] pretty print pretty please
-rw-r--r--ghci.conf11
1 files changed, 9 insertions, 2 deletions
diff --git a/ghci.conf b/ghci.conf
index f98243a..25ddd80 100644
--- a/ghci.conf
+++ b/ghci.conf
@@ -1,6 +1,13 @@
--- :set -Wall
-:set prompt "λ> "
:m Data.Functor Control.Applicative Data.List Control.Monad Data.Maybe Control.Arrow
:set -XGADTs -XArrows -XUnicodeSyntax
+
+:set +t
+:set prompt "λ> "
+
:def hoogle \s -> return $ ":! hoogle --count=15 " ++ show s
:def pf \s -> return $ ":! pointfree " ++ show s
+
+:m Text.Show.Pretty
+:def! nopretty \_ -> return ":set -interactive-print System.IO.print"
+:def! pretty \_ -> return ":set -interactive-print pPrint"
+:pretty