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?
Yes, use
ghc -hide-package evil-package
. Or you can hide the package temporarily withghc-pkg hide evil-package
, and then undo it later withghc-pkg expose evil-package
.