title: Using Curl in Haskell Platform on Windows 7
body: <p>I'm trying to use 'import Text.XML.HXT.Curl' in my project so I can have access to online files (some xml files).</p>
  
  <p>So the error I get is : </p>
  
  <pre><code>Could not find module `Text.XML.HXT.Curl':
      Use -v to see a list of the files searched for.
  </code></pre>
  
  <p>I tried : </p>
  
  <pre><code>:! cabal install curl 
  </code></pre>
  
  <p>but I get an error that it must be on unix or cygwin, so I go on installing cygwin, now it says: </p>
  
  <pre><code>checking for gcc... gcc
  checking for C compiler default output file name... configure: error: C compiler cannot create executables
  See `config.log' for more details.
  cabal: Error: some packages failed to install:
  curl-1.3.7 failed during the configure step. The exception was:
  ExitFailure 77
  
  :! gcc -version
  Access is denied
  </code></pre>
  
  <p>I tried to download the curl package and install it with cmd : runHaskell Setup.hs configure but I get this :</p>
  
  <pre><code>Setup.hs: Missing dependency on a foreign library:
  Missing C library: curl
  This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version)
  </code></pre>
  
  <p>Tried installing gcc,g++,libcurl,make in cygwin, still fails.</p>
  
  <p>Tried installing mingw/mysis and I failed too. Something about curl/curl.h missing.</p>
  
  <p>Does anyone succeeded and can tell me how he did it ?</p>