<HTML><BODY>Hello,<br><br><br>I'm new in haskell. I want to use xml library (<a href="http://hackage.haskell.org/package/xml" _mce_href="http://hackage.haskell.org/package/xml">http://hackage.haskell.org/package/xml</a><span></span>) in my project. <br><br><p>I downloaded it.then try to build and install:</p>
<pre class="lang-hs prettyprint"><code><span class="pln">runhaskell Setup.hs configure<br><br>runhaskell Setup.hs build<br><br>runhaskell Setup.hs install<br></span></code></pre>
<p>All ok. There are no errors. When i try import modules from this lib to my project, for example:</p>
<pre class="lang-hs prettyprint"><code><span class="kwd">import</span><span class="pln"> Text.XML.Light.Cursor<br></span></code></pre>
<p>I get error:</p>
<pre class="lang-hs prettyprint"><code><span class="pun">/</span><span class="pln">home</span><span class="pun">/</span><span class="pln">shk</span><span class="pun">/</span><span class="pln">dev</span><span class="pun">/</span><span class="pln">src</span><span class="pun">/</span><span class="pln">XMPP.hs</span><span class="pun">:</span><span class="lit">8</span><span class="pun">:</span><span class="lit">8</span><span class="pun">:</span><span class="pln"><br>&nbsp; &nbsp; Could not find </span><span class="kwd">module</span><span class="pln"> </span><span class="pun">`</span><span class="pln">Text.XML.Light.Cursor'</span><span class="pun">:</span><span class="pln"><br>&nbsp; &nbsp; &nbsp; Use </span><span class="pun">-</span><span class="pln">v to see a list </span><span class="kwd">of</span><span class="pln"> the files searched for</span><span class="pun">.</span><span class="pln"><br>Failed</span><span class="pun">,</span><span class="pln"> modules loaded</span><span class="pun">:</span><span class="pln"> none</span><span class="pun">.<br><br></span><span class="pln">if i try:<br><br>&gt; cabal install xml<br>
<div id="_mcePaste" class="mcePaste">Resolving dependencies...</div>
<div id="_mcePaste" class="mcePaste">No packages to be installed. All the requested packages are already installed.</div>
<div id="_mcePaste" class="mcePaste">If you want to reinstall anyway then use the --reinstall flag.</div><span></span></span></code></pre>
<p>What's wrong? How can i install and use library in haskell?</p>
<p>Thank you.</p><span></span>&nbsp;</BODY></HTML>