[Haskell-cafe] ghc package problem
lonetiger at gmail.com
Fri Apr 16 09:40:38 EDT 2010
For the first part
$ cat foo.hs
module Main (main) where
main :: IO ()
main = print $ readExtensions "BangPatterns"
$ ghc --make foo.hs
Could not find module `Language.Haskell.Exts':
Use -v to see a list of the files searched for.
So same error. This isn't just limited to HSE though, it can't find packages
like random,time etc either. Keeps reinstalling them on every cabal install.
And the second part,
Ghc-pkg check doesn't return anything, so I assume it thinks everything's
Full output of my ghc-pkg list is below, and as you can see in the user
packages, it's reinstalling every and shadowing those packages everytime. I
could just rebuild everything including the compiler and that should fix it,
but it's kinda odd that it got in this state.
$ ghc-pkg list
From: Ivan Lazar Miljenovic [mailto:ivan.miljenovic at gmail.com]
Sent: Friday, April 16, 2010 15:07
Cc: daniel.is.fischer at web.de; haskell-cafe at haskell.org
Subject: Re: [Haskell-cafe] ghc package problem
What does "ghc-pkg check" say? You probably have inconsistent deps; as such
rebuild all packages that are broken.
A package wrapped in braces in the "ghc-pkg list" output means the same
"Phyx" <lonetiger at gmail.com> writes:
> (sorry for the duplication, forgot to reply to the mailing list too)
> Well, I did, I've completely unregistered the package,
> Did a check and recache, both completed with no problem.
> In detail what's happening is, I'm building a tool that requires
Haskell-src-exts, So I upgraded to the 1.9.0 release yesterday and all went
> However when I try to build my tool using my cabal file, it proceeds to
download all dependencies and reinstalling them,, (including
Haskell-src-exts) even though They are all already installed (gathered that
from the output of ghc-pkg list).
> It does this everytime, so everytime It tries to build all dependencies
and then the tool.
> But if I try to load the file in GHCI, it also says it can't find the
> -----Original Message-----
> From: daniel.is.fischer at web.de [mailto:daniel.is.fischer at web.de]
> Sent: Friday, April 16, 2010 13:36
> To: haskell-cafe at haskell.org
> Cc: Phyx
> Subject: Re: [Haskell-cafe] ghc package problem
> Am Freitag 16 April 2010 11:28:54 schrieb Phyx:
>> Hi all,
>> I'm having a rather weird problem,
>> Ghc-pkg list shows a package installed but doing a ghc -make will
>> give an error saying that It can't find a module that's supposed to
>> be in the installed package.
>> And cabal install always reinstall all the dependencies on every change.
>> It doesn't seem to see that they're already installed.
> Can we have more details, please?
> As a first idea, you might try
> ghc-pkg unregister offending-package
> cabal install offending-package
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
More information about the Haskell-Cafe