-
Notifications
You must be signed in to change notification settings - Fork 2
/
.jfischoff-ghci
44 lines (38 loc) · 1.57 KB
/
.jfischoff-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
33
34
35
36
37
38
39
40
41
42
43
------------------------------------------------------------------------------------
--
-- This is taken from doctests's doctests:
--
:set -DTEST -isrc -itests -idist/build/autogen -packageghc
------------------------------------------------------------------------------------
-- These will be necessary for using this BNFC-meta stuff, as far as I can tell.
:set -XTemplateHaskell
:set -XQuasiQuotes
------------------------------------------------------------------------------------
--
-- You may want to enable this (for doctest convenience):
--
-- :set prompt "\n|\n>>> "
--
-- The reason this might be useful, is that you could copy/paste your ghci
-- session into a file you're editing, and (except for commenting)
-- it will already be in a format which doctest will check for you.
--
-- In order to comment it out, use the regular expression:
--
-- s/^/-- /
--
-- on the newly added lines.
--
-- In practical terms, this means you can run some expressions in ghci,
-- paste your session into a doctested source (.hs) file, and you will
-- be alerted in the future should the evaluation of that expression
-- ever change.
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
-- These the ones suggested by jfischoff, commented:
:set -i./src -i./tests
-- :set -package transformers-0.2.2.0
-- :set -package mtl-2.0.1.0
:set -cpp -pgmPcpphs -optP--cpp
:load Main
------------------------------------------------------------------------------------