Quantcast
Channel: Is there a simple way to load extra packages to ghci when invoked via cabal repl? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Is there a simple way to load extra packages to ghci when invoked via cabal repl?

$
0
0

cabal repl is quite useful for debugging a library, however ghci will have all packages hidden that aren't dependencies of the cabal package. While that is certainly a good thing for cabal build, for repl it means I can't load something from an unrelated package for a quick test.

I can access any package by issuing :set -package, but that'll unload all modules from the pacakge I'm working on, defeating the point of cabal repl.

What's a nice way to simply load packages I have installed, but don't want as dependencies to my library?


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images