-
Notifications
You must be signed in to change notification settings - Fork 7
/
.ghci
executable file
·27 lines (19 loc) · 871 Bytes
/
.ghci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
:seti -XNoImplicitPrelude
:seti -XOverloadedStrings
:seti -XScopedTypeVariables
:set -Wall
:set -fno-warn-type-defaults
:set -package pretty-show
import RIO
import Text.Show.Pretty (pPrint)
:set -interactive-print pPrint
:def rt const $ return $ unlines [":r", ":main --rerun-update"]
:def rtfe const $ return $ unlines [":r", ":main --rerun-update --rerun-filter failures,exceptions"]
:def rtn const $ return $ unlines [":r", ":main --rerun-update --rerun-filter new"]
:set +s
:set +t
-- custom flag setting
:def yaml const $ return $ unlines [":set -DWITH_YAML", ":set -package yaml"]
:def noyaml const $ return $ unlines [":set -UWITH_YAML", ":set -hide-package yaml"]
:def cli const $ return $ unlines [":set -DWITH_CLI", ":set -package optparse-applicative"]
:def nocli const $ return $ unlines [":set -UWITH_CLI", ":set -hide-package optparse-applicative"]