Rob Rix
df9e7fa1b2
Note how we came by this.
2019-10-30 15:44:58 -04:00
Rob Rix
f9bbcb3b64
Comment the .ghci file
2019-10-30 15:44:03 -04:00
Rob Rix
e58bb8825f
Enable StrictData.
2019-10-30 15:36:32 -04:00
Rob Rix
3e0a968635
Set the output, o, hi, and stub dirs to dist-repl.
2019-10-30 15:34:29 -04:00
Rob Rix
f71ad89725
Use dist-repl import paths.
2019-10-30 15:34:18 -04:00
Rob Rix
c53e18e263
Add a .ghci file configured to set up the project loading &c.
2019-10-30 15:18:56 -04:00
Rob Rix
0aa6effbdf
🔥 the project-wide .ghci file.
2019-10-30 14:57:21 -04:00
Patrick Thomson
752c923a94
Don't load pretty-show/hscolour by default. ( #16 )
...
As @mpickering pointed out, this breaks `new-repl` if you have
multiple versions of `pretty-show` in your package store.
2019-08-19 14:20:34 +02:00
Rob Rix
e9dc41701f
Simplify ghci config using :def!.
2019-07-18 12:41:36 -04:00
Patrick Thomson
d56377aea9
Prevent slowdowns when pretty-printing in ghci.
...
Right now, when opening a shell with `script/ghci`, you can encounter
a tremendous slowdown by turning on pretty-printing (with `pretty`)
then printing any value (`[0..3]` should work).
This stems from the fact that our `.ghci` specifies the `prettyShow`
function, defined in Semantic.Util, as its `-interactive-print`
function. While this is a good choice of a pretty-printer, the fact
that it is in Util, a file which imports many modules and uses fancy
types, is not good: pretty-printing cannot begin until Util is
recompiled and linked in. This explains why benchmarking this slowdown
revealed nothing but `dlsym` calls: we thought it was due to linking
in the tree-sitter libraries, but it was actually waiting for Util to
compile and link in.
The fix is simple: define `prettyShow` in another module. This should
provide significant speedups to our developer workflow.
2018-10-04 14:38:36 -04:00
Ayman Nadeem
e030824d52
fix conflicts with new haskell additions
2018-05-31 15:32:10 -07:00
Rob Rix
39e4f6cc0a
Use prettyShow from .ghci.
2018-05-23 09:48:14 -04:00
Ayman Nadeem
b1c05d6755
Merge remote-tracking branch 'origin/master' into java-assignment
2018-05-01 10:57:21 -07:00
Timothy Clem
373004bdf6
Fix docs
2018-04-22 07:48:04 -07:00
Ayman Nadeem
a0d880f1fa
add java and php to assignment macro in .ghci
2018-03-16 16:58:23 -07:00
Rob Rix
dbb1a33fca
Rename Parser to Parsing.Parser.
2017-11-27 13:24:45 -05:00
Rob Rix
a5925ce9ed
This doesn’t work.
2017-10-13 14:23:11 -04:00
Rob Rix
8b89c73979
Rename the reload binding to :r.
2017-10-13 12:47:46 -04:00
Rob Rix
1cc005bc4a
Pretty-printing is on by default.
2017-10-13 12:47:28 -04:00
Rob Rix
bcf273b019
Define pretty with unlines & without importing.
2017-10-13 12:47:21 -04:00
Rob Rix
b77d847a19
🔥 source because it’s dangerous now.
2017-10-13 12:46:16 -04:00
Rob Rix
5e0a1c9101
Update .ghci
2017-10-13 12:42:08 -04:00
Rob Rix
b22f4f9fc3
No : in the prompt.
2017-10-13 11:41:52 -04:00
Rob Rix
b1a7056948
Make the assignment binding reloadable.
2017-10-13 11:24:13 -04:00
Rob Rix
e511bd2572
Document stuff in .ghci.
2017-10-13 11:23:55 -04:00
Rob Rix
55fec0a156
Add the assignment macro to the .ghci file.
2017-10-13 10:55:15 -04:00
Rob Rix
8d156bfa8b
Set a cyan lambda prompt.
2017-10-13 10:21:39 -04:00
Rob Rix
e17f8e58a4
Warnings aren’t fatal in the repl.
2017-10-13 10:21:29 -04:00
Rob Rix
0d71bf7fa6
Break on errors in interactive code.
2017-10-13 10:21:08 -04:00
Rob Rix
7f6017b037
Define a reload-with-pretty macro.
2017-10-13 10:20:48 -04:00
Rob Rix
dcf5f5b40a
Define pretty/no-pretty macros.
2017-10-13 10:20:36 -04:00
Rob Rix
b55f5a20d2
Add a .ghci file with a source
macro.
2017-10-13 10:20:24 -04:00