[Haskell-cafe] Adding packages from within ghci session

Simon Hafner hafnersimon at gmail.com
Fri Jan 19 13:47:00 UTC 2018


Hello

I've been exploring some code via ghci, and I've found myself in this loop:

- write some code
- figure out I need another package (e.g. mtl for runReaderT)
- add package to cabal specification
- reload stack ghci
- Ctrl+R all the statements to replay the session so far

Is there a way to speed up the loop, e.g. via loading packages
directly from ghci or saving/replaying a session?

Cheers,
Simon


More information about the Haskell-Cafe mailing list