Force GHC using local files

101 views Asked by At

I'm making some "experiments" on a haskell module and I have a problem with a source file I wish to modify.

I have many reasons to think that GHC seek the installed (with cabal) library on my system and not the local sources files.
I deleted the *.o files locally and the other source files in this module are not rebuild by GHC.

Can I force GHC to use the local sources files of a module or ignore an installed module in particular?

1

There are 1 answers

0
Reid Barton On BEST ANSWER

Yes, use ghc -hide-package evil-package. Or you can hide the package temporarily with ghc-pkg hide evil-package, and then undo it later with ghc-pkg expose evil-package.