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

2010-05-11 Thread Ivan Lazar Miljenovic
David Virebayre  writes:

> 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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  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.

David.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 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.miljeno...@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---tp28507704p28521179.html
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


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
 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.miljeno...@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---tp28507704p28508920.html
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


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

2010-05-10 Thread Ivan Lazar Miljenovic
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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2010-05-09 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 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.miljeno...@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---tp28507704p28507878.html
>> 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.miljeno...@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---tp28507704p28508239.html
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


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  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.miljeno...@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---tp28507704p28507878.html
> 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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 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.miljeno...@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---tp28507704p28507878.html
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


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  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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 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---tp28507704p28507704.html
>> 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.miljeno...@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---tp28507704p28507747.html
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


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  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---tp28507704p28507704.html
> 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.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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.

%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---tp28507704p28507704.html
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