1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 08:27:56 +03:00

Simplify the sample .ghci file.

This commit is contained in:
Rob Rix 2019-11-05 12:51:38 -05:00
parent daa24d1e31
commit b4c4ddcf15
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -1,10 +1,8 @@
-- Consider copying this to your ~/.ghc/ghci.conf file:
-- Pretty-printing
:set -ignore-package pretty-simple -package pretty-simple
:def! pretty \ _ -> pure ":set -interactive-print Text.Pretty.Simple.pPrint"
:def! no-pretty \ _ -> pure ":set -interactive-print System.IO.print"
:def! r \_ -> pure ":reload\n:pretty"
:set -package-id prtty-smpl-3.1.0.0-b6696d88
:set -interactive-print Text.Pretty.Simple.pPrint
-- Turn on some language extensions you use a lot
:seti -XFlexibleContexts -XOverloadedStrings -XTypeApplications
@ -26,6 +24,3 @@
-- Better typed holes
:set -funclutter-valid-hole-fits -fabstract-refinement-hole-fits -frefinement-level-hole-fits=2
-- Enable pretty-printing immediately
:pretty