Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-11 Thread zaxis
`ghc-pkg list` finds two random packages. After `ghc-pkg unregsiter` the one installed by cabal in ~/.ghc/, all works normally now! %ghc-pkg list|grep -i random random-1.0.0.2 zaxis wrote: I have reinstall ghc, xmonad and xmonad-contrib but it still doesnot work! %ghc-pkg list|grep

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-11 Thread David Virebayre
On Tue, May 11, 2010 at 10:10 AM, zaxis z_a...@163.com wrote: `ghc-pkg list` finds two random packages.  After `ghc-pkg unregsiter` the one installed by cabal in ~/.ghc/, all works normally now! I stopped counting the number of times I've reinstalled GHC because I forgot to tell cabal to

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-11 Thread Ivan Lazar Miljenovic
David Virebayre dav.vire+hask...@gmail.com writes: On Tue, May 11, 2010 at 10:10 AM, zaxis z_a...@163.com wrote: `ghc-pkg list` finds two random packages.  After `ghc-pkg unregsiter` the one installed by cabal in ~/.ghc/, all works normally now! I stopped counting the number of times I've

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-10 Thread zaxis
It seems that it is not a xmonad problem as xmond just call ghc directly. %cd ~/.xmonad %ghc --make xmonad.hs xmonad.hs:20:7: Could not find module `XMonad.Layout.LayoutHints': Use -v to see a list of the files searched for. Ivan Lazar Miljenovic wrote: I suggest you either

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-10 Thread Ivan Lazar Miljenovic
zaxis z_a...@163.com writes: It seems that it is not a xmonad problem as xmond just call ghc directly. Well, yes, except that it might be something else to do with your config, etc. and as such the xmonad mailing list is probably more relevant. -- Ivan Lazar Miljenovic

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-10 Thread zaxis
I have reinstall ghc, xmonad and xmonad-contrib but it still doesnot work! %ghc-pkg list|grep xmonad xmonad-0.9.1 xmonad-contrib-0.9.1 %cat /usr/lib/ghc-6.12.1/package.conf.d/xmonad-contrib-0.9.1-e073c906e3b29eb062e632e9bb989664.conf|grep LayoutHints

[Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-09 Thread zaxis
%pacman -Q|grep xmonad xmonad 0.9.1-4 xmonad-contrib 0.9.1-2 %%xmonad --recompile Error detected while loading xmonad configuration file: /home/sw2wolf/.xmonad/xmonad.hs xmonad.hs:20:7: Could not find module `XMonad.Layout.LayoutHints': Use -v to see a list of the files searched for.

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-09 Thread Ivan Miljenovic
Does ghc-pkg check complain? Is the version of GHC being used the same one that was used to build xmonad-contrib? What does ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints say? On 10 May 2010 14:59, zaxis z_a...@163.com wrote: %pacman -Q|grep xmonad xmonad 0.9.1-4

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-09 Thread zaxis
There is no any complain by ghc-pkg. %ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints Ivan Lazar Miljenovic wrote: Does ghc-pkg check complain? Is the version of GHC being used the same one that was

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-09 Thread Ivan Miljenovic
(Note that this really should be on the xmonad mailing list, but anyway...). On 10 May 2010 15:09, zaxis z_a...@163.com wrote: There is no any complain by ghc-pkg. %ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints                 XMonad.Layout.LayoutCombinators

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-09 Thread zaxis
%rm ~/.xmonad/xmonad.{hi,o} %ls ~/.xmonad history xmonad-i386-linux* xmonad.errors xmonad.hs %xmonad --recompile Error detected while loading xmonad configuration file: /home/sw2wolf/.xmonad/xmonad.hs xmonad.hs:20:7: Could not find module `XMonad.Layout.LayoutHints': Use -v to see

Re: [Haskell-cafe] Why cannot ghc find a existng module ?

2010-05-09 Thread Ivan Miljenovic
I suggest you either go on #xmonad and ask the people there, or send an email to the xmonad mailing list with your config attached. On 10 May 2010 15:37, zaxis z_a...@163.com wrote: %rm ~/.xmonad/xmonad.{hi,o} %ls ~/.xmonad history  xmonad-i386-linux*  xmonad.errors  xmonad.hs %xmonad