Why cannot ghc find a existng module ?

%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. %ghc-pkg list|grep xmonad xmonad-0.9.1 xmonad-contrib-0.9.1 %pacman -Ql xmonad-contrib|grep LayoutHints xmonad-contrib /usr/lib/ghc-6.12.1/site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi Sincerely! ----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

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
%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.
%ghc-pkg list|grep xmonad xmonad-0.9.1 xmonad-contrib-0.9.1
%pacman -Ql xmonad-contrib|grep LayoutHints xmonad-contrib /usr/lib/ghc-6.12.1/site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi
Sincerely!
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ 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

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 used to build xmonad-contrib?
What does "ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints" say?
On 10 May 2010 14:59, zaxis
wrote: %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.
%ghc-pkg list|grep xmonad xmonad-0.9.1 xmonad-contrib-0.9.1
%pacman -Ql xmonad-contrib|grep LayoutHints xmonad-contrib /usr/lib/ghc-6.12.1/site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi
Sincerely!
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ 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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

(Note that this really should be on the xmonad mailing list, but anyway...).
On 10 May 2010 15:09, zaxis
There is no any complain by ghc-pkg. %ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints
Try "rm ~/.xmonad/xmonad.{hi,o}" and then xmonad --recompile again. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

%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 a list of the files searched for. Please check the file for errors. Ivan Lazar Miljenovic wrote:
(Note that this really should be on the xmonad mailing list, but anyway...).
On 10 May 2010 15:09, zaxis
wrote: There is no any complain by ghc-pkg. %ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints
Try "rm ~/.xmonad/xmonad.{hi,o}" and then xmonad --recompile again.
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

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
%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 a list of the files searched for.
Please check the file for errors.
Ivan Lazar Miljenovic wrote:
(Note that this really should be on the xmonad mailing list, but anyway...).
On 10 May 2010 15:09, zaxis
wrote: There is no any complain by ghc-pkg. %ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints
Try "rm ~/.xmonad/xmonad.{hi,o}" and then xmonad --recompile again.
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ 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

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 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
wrote: %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 a list of the files searched for.
Please check the file for errors.
Ivan Lazar Miljenovic wrote:
(Note that this really should be on the xmonad mailing list, but anyway...).
On 10 May 2010 15:09, zaxis
wrote: There is no any complain by ghc-pkg. %ghc-pkg field xmonad-contrib exposed-modules | grep LayoutHints XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints
Try "rm ~/.xmonad/xmonad.{hi,o}" and then xmonad --recompile again.
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ 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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

zaxis
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 Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

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 XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints %ls /usr/lib/ghc-6.12.1/site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi ../site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi LayoutHints is indeed there. But ghc still cannot find it ! Thanks for your suggestion. i will try #xmonad and xmond mailinglist later! Ivan Lazar Miljenovic wrote:
zaxis
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 Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2850... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

`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 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 XMonad.Layout.LayoutCombinators XMonad.Layout.LayoutHints
%ls /usr/lib/ghc-6.12.1/site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi ../site-local/xmonad-contrib-0.9.1/XMonad/Layout/LayoutHints.hi
LayoutHints is indeed there. But ghc still cannot find it !
Thanks for your suggestion. i will try #xmonad and xmond mailinglist later!
Ivan Lazar Miljenovic wrote:
zaxis
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 Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
----- e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/Why-cannot-ghc-find-a-existng-module---tp28507704p2852... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

On Tue, May 11, 2010 at 10:10 AM, zaxis
`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 install a package globally. I really should modify the config file. David.

David Virebayre
On Tue, May 11, 2010 at 10:10 AM, zaxis
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 install a package globally. I really should modify the config file.
No, this isn't the problem here. The problem is that zaxis should never have installed the second random library in the first place, because it is a boot library of GHC. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (4)
-
David Virebayre
-
Ivan Lazar Miljenovic
-
Ivan Miljenovic
-
zaxis