<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011>After a lot of
struggling I finally managed to install the packages network and ftpsh
on a Windows machine. After installing msys and adjusting the path for
mingW, the command "cabal install network" finally worked. At least I
thought it was. But when I put "import Network.FTP.Client"
in myprogram.hs, GHC can't find the package. After a while I
found how to get more info: </SPAN></FONT><FONT size=2 face=Arial><SPAN
class=500425711-28042011>ghc --make -v myprogram.hs -package ftphs. There was a
long list of warnings, missing packages, wrong versionnumbers...
arghh...</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011>Ghc also complained
about shadowed packages. i.e. When I do: ghc-dpg list, I get 2 versions of
Win32-2.2.0.2. They have equal version numbers but the package-id's are
different. One package is stored in \program files\Haskell
Platform/2010.2.0.0/lib/package.conf.d and the other is stored at
\Docs&Settings\Kees\Application
Data\ghc\i386-mingw32-6.12.3\package.conf.d</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011>The packages from
Docs&Settings map were creates using msys. The other were
create before installing network, ftpsh etc (normal cmd command
line).</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011>I wonder whether the
2 directories are okay and if not, how do I change the cabal-directory for
msys/mingw?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011>As a beginner I love
the language. Using Haskell as a platform (at least for Win32
development) with all it's version dependencies is in my opinion
difficult (compared to Java, C#, Delphi).</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011></SPAN></FONT><FONT
size=2 face=Arial><SPAN class=500425711-28042011></SPAN></FONT><FONT size=2
face=Arial><SPAN class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=500425711-28042011>Can somebody
help?</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011>Kees</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=500425711-28042011></SPAN></FONT> </DIV></BODY></HTML>