atom-haskell / ide-haskell

Haskell IDE plugin for Atom editor
https://atom.io/packages/ide-haskell
Other
232 stars 30 forks source link

Not finding System.Random #220

Closed AndrewC19 closed 3 years ago

AndrewC19 commented 6 years ago

When using the IDE-Haskell, if I use an import such as import System.Random, I get an error:

Failed to load interface for `System.Random' Use -v to see a list of the files searched for.

However, if load the module directly in ghci it works as expected.

Any ideas why?

lierdakil commented 6 years ago

So, any luck?

AndrewC19 commented 6 years ago

In the end no, reverting back to ghc 8.0.2 seemed to cause other issues. Just have to stack exec atom for now!

lierdakil commented 6 years ago

Okay. Just be aware that building with cabal will likely fail -- cabal will complain about GHC_PACKAGE_PATH.

dmotz commented 5 years ago

Any advice on fixing this?

lierdakil commented 5 years ago

@dmotz, the most common reason for this is a missing package in the cabalfile build-depends.