-
Notifications
You must be signed in to change notification settings - Fork 2
/
.ghci
32 lines (28 loc) · 1.3 KB
/
.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
28
29
30
31
32
-- .ghci for creating a Lazy SmallCheck 2012 environment
:{
let command_lsc = unlines [ ":load Test.LazySmallCheck2012"
, ":set prompt \"*LSC2012> \""
, "putStrLn \"\\n\""
, "putStrLn \" ##########################################\""
, "putStrLn \" # LazySmallCheck 2012 GHCi Environment #\""
, "putStrLn \" ##########################################\""
, "putStrLn \" :lsc --suite === Run test suite.\""
, "putStrLn \" :lsc --reset === Reset environment.\""
, "putStrLn \" :lsc --readme === View README.md.\""
, "putStrLn \"\""]
:}
:{
let command_suite = unlines [ ":load suite/Functionality.hs"
, "main"
, "putStr \"\\nPress <ENTER> to continue...\""
, "getLine"
, ":lsc --reset"]
:}
:{
let command_switch "--suite" = return $ command_suite
command_switch "--reset" = return $ command_lsc
command_switch "--readme" = return $ ":! less README.md"
command_switch _ = return $ "putStrLn \"Invalid command.\""
:}
:def lsc command_switch
:lsc --reset