
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.

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

(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 fine. 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 packages. -----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 13:36 To: haskell-cafe@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

Am Freitag 16 April 2010 14:06:16 schrieb Phyx:
(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 fine.
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).
Which command do you use, runhaskell ./Setup.hs *, cabal install, cabal install --reinstall? Only for the last it wouldn't be utterly bewildering, though reinstalling all dependencies might be a bit extreme. Which versions of GHC and cabal-install are you using?
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 packages.
What is the exact error message?
-----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 13:36 To: haskell-cafe@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

I'm using cabal install, $ ghc --make -O2 WinDll WinDll\Lib\NativeMapping.hs:51:18: Could not find module `Language.Haskell.Exts': Use -v to see a list of the files searched for. Is the error message I get when I try to just compile it normally While $ ghc-pkg find-module "Language.Haskell.Exts" C:/msys/1.0/local\lib\package.conf.d: C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d: haskell-src-exts-1.9.0 So it should be able to find it. I'm using a snapshot of GHC 6.13 $ ghc -v Glasgow Haskell Compiler, Version 6.13.20100320, for Haskell 98, stage 2 booted by GHC version 6.12.1 And $ cabal -V cabal-install version 0.9.0 using version 1.9.0 of the Cabal library I know 6.13 isn't out yet, But don't think they touched the packaging part much. -----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 14:42 To: Phyx Cc: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem Am Freitag 16 April 2010 14:06:16 schrieb Phyx:
(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 fine.
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).
Which command do you use, runhaskell ./Setup.hs *, cabal install, cabal install --reinstall? Only for the last it wouldn't be utterly bewildering, though reinstalling all dependencies might be a bit extreme. Which versions of GHC and cabal-install are you using?
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 packages.
What is the exact error message?
-----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 13:36 To: haskell-cafe@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

Am Freitag 16 April 2010 15:06:55 schrieb Phyx:
I'm using cabal install,
$ ghc --make -O2 WinDll
WinDll\Lib\NativeMapping.hs:51:18: Could not find module `Language.Haskell.Exts': Use -v to see a list of the files searched for.
Is the error message I get when I try to just compile it normally While
$ ghc-pkg find-module "Language.Haskell.Exts" C:/msys/1.0/local\lib\package.conf.d:
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.con f.d: haskell-src-exts-1.9.0
So it should be able to find it.
Indeed. What's the result of compiling module Main (main) where import Language.Haskell.Exts main :: IO () main = print $ readExtensions "BangPatterns" ? If that works, it's probably an issue with your tool, otherwise it's haskell-src-exts or GHC.
I'm using a snapshot of GHC 6.13
$ ghc -v Glasgow Haskell Compiler, Version 6.13.20100320, for Haskell 98, stage 2 booted by GHC version 6.12.1
And
$ cabal -V cabal-install version 0.9.0 using version 1.9.0 of the Cabal library
I know 6.13 isn't out yet, But don't think they touched the packaging part much.
Unlikely, but one never knows. Have you still an older GHC around you could try?

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 thing.
"Phyx"
(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 fine.
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 packages.
-----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 13:36 To: haskell-cafe@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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

(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 fine.
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
For the first part
$ cat foo.hs
module Main (main) where
import Language.Haskell.Exts
main :: IO ()
main = print $ readExtensions "BangPatterns"
$ ghc --make foo.hs
foo.hs:3:8:
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
fine.
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
C:/msys/1.0/local\lib\package.conf.d:
Cabal-1.9.0
Win32-2.2.0.1
array-0.3.0.0
base-4.2.0.0
bin-package-db-0.0.0.0
(binary-0.5.0.2)
bytestring-0.9.1.5
containers-0.3.0.0
directory-1.0.1.1
dph-base-0.4.0
(dph-par-0.4.0)
(dph-prim-interface-0.4.0)
(dph-prim-par-0.4.0)
(dph-prim-seq-0.4.0)
(dph-seq-0.4.0)
extensible-exceptions-0.1.1.1
ffi-1.0
filepath-1.1.0.4
ghc-6.13.20100320
ghc-prim-0.2.0.0
haskell98-1.0.1.1
hpc-0.5.0.5
integer-gmp-0.2.0.0
old-locale-1.0.0.2
old-time-1.0.0.4
pretty-1.0.1.1
process-1.0.1.2
random-1.0.0.2
rts-1.0
template-haskell-2.4.0.0
time-1.1.4
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d:
QuickCheck-2.1.0.3
WinDll-0.1.9
cpphs-1.11
ghc-paths-0.1.0.6
haskell-src-exts-1.9.0
haskell98-1.0.1.1
mtl-1.1.0.2
random-1.0.0.2
syb-0.1.0.3
tar-0.3.1.0
time-1.2.0.1
-----Original Message-----
From: Ivan Lazar Miljenovic [mailto:ivan.miljenovic@gmail.com]
Sent: Friday, April 16, 2010 15:07
To: Phyx
Cc: daniel.is.fischer@web.de; haskell-cafe@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
thing.
"Phyx"
-----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 13:36 To: haskell-cafe@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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Am Freitag 16 April 2010 15:40:38 schrieb Phyx:
For the first part
$ cat foo.hs module Main (main) where
import Language.Haskell.Exts
main :: IO () main = print $ readExtensions "BangPatterns"
$ ghc --make foo.hs
foo.hs:3:8: 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.
Borked compiler, then, it seems. Does it work when you pass -package flags on the command line instead of using --make? It looks a bit as though neither cabal nor GHC can parse the output of ghc- pkg.
And the second part,
Ghc-pkg check doesn't return anything, so I assume it thinks everything's fine.
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 C:/msys/1.0/local\lib\package.conf.d: Cabal-1.9.0 Win32-2.2.0.1 array-0.3.0.0 base-4.2.0.0 bin-package-db-0.0.0.0 (binary-0.5.0.2) bytestring-0.9.1.5 containers-0.3.0.0 directory-1.0.1.1 dph-base-0.4.0 (dph-par-0.4.0) (dph-prim-interface-0.4.0) (dph-prim-par-0.4.0) (dph-prim-seq-0.4.0) (dph-seq-0.4.0) extensible-exceptions-0.1.1.1 ffi-1.0 filepath-1.1.0.4 ghc-6.13.20100320 ghc-prim-0.2.0.0 haskell98-1.0.1.1 hpc-0.5.0.5 integer-gmp-0.2.0.0 old-locale-1.0.0.2 old-time-1.0.0.4 pretty-1.0.1.1 process-1.0.1.2 random-1.0.0.2 rts-1.0 template-haskell-2.4.0.0 time-1.1.4
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.con f.d: QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1

Well, when I try compiling using -package I get $ ghc -package haskell-src-exts foo.hs <command line>: cannot satisfy -package haskell-src-exts: haskell-src-exts-1.9.0-1e9f470ed15bddc8bf59f4d012a82687 is unusable due to m issing or recursive dependencies: cpphs-1.11-8a811b46491cae31a926d4e812ff29df (use -v for more information) And even if I pass it cpphs it doesn't find it. Odd, I'll try Ben's suggestion and if not I'll just reinstall everything -----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@web.de] Sent: Friday, April 16, 2010 16:10 To: Phyx; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem Am Freitag 16 April 2010 15:40:38 schrieb Phyx:
For the first part
$ cat foo.hs module Main (main) where
import Language.Haskell.Exts
main :: IO () main = print $ readExtensions "BangPatterns"
$ ghc --make foo.hs
foo.hs:3:8: 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.
Borked compiler, then, it seems. Does it work when you pass -package flags on the command line instead of using --make? It looks a bit as though neither cabal nor GHC can parse the output of ghc- pkg.
And the second part,
Ghc-pkg check doesn't return anything, so I assume it thinks everything's fine.
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 C:/msys/1.0/local\lib\package.conf.d: Cabal-1.9.0 Win32-2.2.0.1 array-0.3.0.0 base-4.2.0.0 bin-package-db-0.0.0.0 (binary-0.5.0.2) bytestring-0.9.1.5 containers-0.3.0.0 directory-1.0.1.1 dph-base-0.4.0 (dph-par-0.4.0) (dph-prim-interface-0.4.0) (dph-prim-par-0.4.0) (dph-prim-seq-0.4.0) (dph-seq-0.4.0) extensible-exceptions-0.1.1.1 ffi-1.0 filepath-1.1.0.4 ghc-6.13.20100320 ghc-prim-0.2.0.0 haskell98-1.0.1.1 hpc-0.5.0.5 integer-gmp-0.2.0.0 old-locale-1.0.0.2 old-time-1.0.0.4 pretty-1.0.1.1 process-1.0.1.2 random-1.0.0.2 rts-1.0 template-haskell-2.4.0.0 time-1.1.4
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.co n f.d: QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1

On Fri, Apr 16, 2010 at 2:40 PM, Phyx
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.
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d: QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1
So every package you are having problems with is in your user package list? Perhaps there is some disagreement in either Cabal or GHC or both as to where those packages/that package file should be? Perhaps try a cabal install --global haskell-src-exts and see if that makes a difference, or attach --user to a configure command.

Well, it's in the user list because it can't find them in the global list.
With the exception of Haskell-src-exts all the other packages are already
available in my global list. I'll try installing global and see
-----Original Message-----
From: thebenmachine@googlemail.com [mailto:thebenmachine@googlemail.com] On
Behalf Of Ben Millwood
Sent: Friday, April 16, 2010 20:57
To: Phyx
Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] ghc package problem
On Fri, Apr 16, 2010 at 2:40 PM, Phyx
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.
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d:
QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1
So every package you are having problems with is in your user package list? Perhaps there is some disagreement in either Cabal or GHC or both as to where those packages/that package file should be? Perhaps try a cabal install --global haskell-src-exts and see if that makes a difference, or attach --user to a configure command.

I've tried your suggestion, and with the --global flag it does work, but
only if I keep using the global flag, when I just install as user again same
thing happens. Maybe something's wrong with the user package conf.
Unfortunately installing as global requires admin rights and installs the
tools as admins only, so I don't really want to continue using it like that.
-----Original Message-----
From: thebenmachine@googlemail.com [mailto:thebenmachine@googlemail.com] On
Behalf Of Ben Millwood
Sent: Friday, April 16, 2010 20:57
To: Phyx
Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] ghc package problem
On Fri, Apr 16, 2010 at 2:40 PM, Phyx
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.
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d:
QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1
So every package you are having problems with is in your user package list? Perhaps there is some disagreement in either Cabal or GHC or both as to where those packages/that package file should be? Perhaps try a cabal install --global haskell-src-exts and see if that makes a difference, or attach --user to a configure command.

Stupid question: are you trying to build this package/use ghci as the
same user that has haskell-src-exts installed as a user?
"Phyx"
I've tried your suggestion, and with the --global flag it does work, but only if I keep using the global flag, when I just install as user again same thing happens. Maybe something's wrong with the user package conf.
Unfortunately installing as global requires admin rights and installs the tools as admins only, so I don't really want to continue using it like that.
-----Original Message----- From: thebenmachine@googlemail.com [mailto:thebenmachine@googlemail.com] On Behalf Of Ben Millwood Sent: Friday, April 16, 2010 20:57 To: Phyx Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem
On Fri, Apr 16, 2010 at 2:40 PM, Phyx
wrote: 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.
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d:
QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1
So every package you are having problems with is in your user package list? Perhaps there is some disagreement in either Cabal or GHC or both as to where those packages/that package file should be? Perhaps try a cabal install --global haskell-src-exts and see if that makes a difference, or attach --user to a configure command.
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Yes I am, I'm running it all as the same user.
-----Original Message-----
From: Ivan Lazar Miljenovic [mailto:ivan.miljenovic@gmail.com]
Sent: Saturday, April 17, 2010 00:45
To: Phyx
Cc: 'Ben Millwood'; haskell-cafe@haskell.org; daniel.is.fischer@web.de
Subject: Re: [Haskell-cafe] ghc package problem
Stupid question: are you trying to build this package/use ghci as the same user that has haskell-src-exts installed as a user?
"Phyx"
I've tried your suggestion, and with the --global flag it does work, but only if I keep using the global flag, when I just install as user again same thing happens. Maybe something's wrong with the user package conf.
Unfortunately installing as global requires admin rights and installs the tools as admins only, so I don't really want to continue using it like that.
-----Original Message----- From: thebenmachine@googlemail.com [mailto:thebenmachine@googlemail.com] On Behalf Of Ben Millwood Sent: Friday, April 16, 2010 20:57 To: Phyx Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem
On Fri, Apr 16, 2010 at 2:40 PM, Phyx
wrote: 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.
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d:
QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1
So every package you are having problems with is in your user package list? Perhaps there is some disagreement in either Cabal or GHC or both as to where those packages/that package file should be? Perhaps try a cabal install --global haskell-src-exts and see if that makes a difference, or attach --user to a configure command.
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Hi all,
I was finally able to solve this by deleting the user package.conf.d completely. I think there was some problem with the package.cache file, It must have gotten corrupted somehow.
Cheers,
Phyx
-----Original Message-----
From: Ivan Lazar Miljenovic [mailto:ivan.miljenovic@gmail.com]
Sent: Saturday, April 17, 2010 00:45
To: Phyx
Cc: 'Ben Millwood'; haskell-cafe@haskell.org; daniel.is.fischer@web.de
Subject: Re: [Haskell-cafe] ghc package problem
Stupid question: are you trying to build this package/use ghci as the same user that has haskell-src-exts installed as a user?
"Phyx"
I've tried your suggestion, and with the --global flag it does work, but only if I keep using the global flag, when I just install as user again same thing happens. Maybe something's wrong with the user package conf.
Unfortunately installing as global requires admin rights and installs the tools as admins only, so I don't really want to continue using it like that.
-----Original Message----- From: thebenmachine@googlemail.com [mailto:thebenmachine@googlemail.com] On Behalf Of Ben Millwood Sent: Friday, April 16, 2010 20:57 To: Phyx Cc: Ivan Lazar Miljenovic; haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] ghc package problem
On Fri, Apr 16, 2010 at 2:40 PM, Phyx
wrote: 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.
C:\Users\Phyx\AppData\Roaming\ghc\i386-mingw32-6.13.20100320\package.conf.d:
QuickCheck-2.1.0.3 WinDll-0.1.9 cpphs-1.11 ghc-paths-0.1.0.6 haskell-src-exts-1.9.0 haskell98-1.0.1.1 mtl-1.1.0.2 random-1.0.0.2 syb-0.1.0.3 tar-0.3.1.0 time-1.2.0.1
So every package you are having problems with is in your user package list? Perhaps there is some disagreement in either Cabal or GHC or both as to where those packages/that package file should be? Perhaps try a cabal install --global haskell-src-exts and see if that makes a difference, or attach --user to a configure command.
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (4)
-
Ben Millwood
-
Daniel Fischer
-
Ivan Lazar Miljenovic
-
Phyx