blue-sky
blue-sky

Reputation: 53916

Run cabal repl from winghci

To include Cabal dependencies I run cabal install mypackage

I then run cabal repl and from REPL use import library

This allows to use newly added library from GHCi.

Is same possible using WinGhci ? Run a WinGhci REPL which has access to installed Cabal dependencies ?

Upvotes: 1

Views: 446

Answers (1)

user1433688
user1433688

Reputation: 415

You can use :! to execute shell commands. I.e. run :!cabal install mypackage from within the WinGHCi repl. But then you can't import mypackage until you restart WinGHCi. That's my experience at least. I'm interested in an answer as well...

Running :!cabal repl inside WinGHCi repl is just not sensible (which answers the title to your question literally).

Upvotes: 0

Related Questions