[Haskell-cafe] GHCI Feature Request: Last Successful Compilation State Saved

Albert Y. C. Lai trebla at vex.net
Tue Aug 30 06:46:30 CEST 2011

On 11-08-27 04:59 PM, aditya siram wrote:
> Many times I've changed files, loaded them, hit a compilation error and
> needed, for example, the inferred type signature of some function. Even
> though that function hasn't been changed I have to either fix my code,
> undo a bunch of changes or comment out the last change I made and reload
> in order to do a ":type" on the function. This really breaks the flow of
> development.

In #haskell, we came up with the idea of running two instances of ghci. 
Try loading in one instance first; if good, commit to the other instance 
too; if bad, you still have the other instance in a functional state. 
Presumably, this should be automated by some middleware.

(We were discussing the prospect of auto-reload, i.e., automatically 
poll source file timestamps and reload.)

More information about the Haskell-Cafe mailing list