Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Which package is loaded? (Obscaenvs)
----------------------------------------------------------------------
Message: 1
Date: Mon, 14 Mar 2011 15:54:09 +0100
From: Obscaenvs <[email protected]>
Subject: [Haskell-beginners] Which package is loaded?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
How do I find out which module a package is loaded from?
I have xmonad-contrib-0.9.1 and xmonad-contrib-0.9.2 installed. I did
$ sudo ghc-pkg hide xmonad-contrib-0.9.1
but it seems the module used is still xmonad-contrib-0.9.1 (I *think*).
I have in my xmonad.hs the line
"import qualified XMonad.Util.Dzen as Dzen" which works - but only with
the legacy functions (e.g. dzen , but *not* dzenConfig), hence my hobby
conclusion that it is xmonad-contrib-0.9.1 that is used -- despite the
fact that it is "hidden", but what do I know?
So how *does* GHC find a package, and within it, a module? I have been
using "the Google" and the documentation for a while now, but I've come
up emtpy handed. Is the module system really so badly documented?
/Fredrik Carl?n
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 33, Issue 15
*****************************************