[Haskell-cafe] Can't use libraries in haskell

Александр kommunist1917 at mail.ru
Sun Jun 26 08:56:39 CEST 2011


Hello,


I'm new in haskell. I want to use xml library (http://hackage.haskell.org/package/xml) in my project. 

I downloaded it.then try to build and install: 
runhaskell Setup.hs configure

runhaskell Setup.hs build

runhaskell Setup.hs install
All ok. There are no errors. When i try import modules from this lib to my project, for example: 
import Text.XML.Light.Cursor
I get error: 
/home/shk/dev/src/XMPP.hs:8:8:
    Could not find module `Text.XML.Light.Cursor':
      Use -v to see a list of the files searched for.
Failed, modules loaded: none.

if i try:

> cabal install xml
Resolving dependencies... 
No packages to be installed. All the requested packages are already installed. 
If you want to reinstall anyway then use the --reinstall flag. 
What's wrong? How can i install and use library in haskell? 
Thank you. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110626/a48c059a/attachment.htm>


More information about the Haskell-Cafe mailing list