Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 668 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 668 Bytes

Live GHCi

Live GHCi lets you put comments in your program...

-- 5*5 ==>

...that are evaluated whenever the file is saved:

-- 5*5 ==> 25

If re-evaluation of all special comments is getting too slow, you can change a ==> to a => and it will be skipped.

Setup

Clone and make it:

$ git clone https://github.com/brianhempel/live-ghci.git
$ cd live-ghci
$ make install

A binary will be produced and copied to /usr/local/bin/live-ghci.

Then in your Haskell project directory, start Live GHCi as follows:

$ live-ghci

Live GHCi watches all Haskell files in the current and deeper subdirectories for changes.