milad zahedi
milad zahedi

Reputation: 807

cabal dependency is not recognized by ghci

I have a project in a sandbox and it has a dependency (mongoDB). when I build the project it build fine but when I want to load a .hs file into ghci it says "Failed to load interface for ‘Database.MongoDB’". what is going on here ?

info : I create sandbox using cabal sandbox init instead of cabal sandbox init --sandbox =.

Upvotes: 0

Views: 95

Answers (1)

milad zahedi
milad zahedi

Reputation: 807

for documentation purposes I write the answer here. with help of geekosaur from Haskell IRC chanell all I needed to do was :

stack/cabal exec ghci

Upvotes: 2

Related Questions