# Import Chasing Problems - hello.lhs

John Heron [email protected]
Tue, 09 Oct 2001 22:43:10 -0500

```Hi Mike, Sigbjorn, Simon,

Thanks so much for the pointers. Sigbjorn's suggestion to check out the patch
was what finally fixed my problem. BTW, ghci still does work for me.

I get this lovely message:

F:\stuff>ghci -package win32 hello.lhs
C:\ghc-5.02\bin\ghc.exe: file `P?B' does not exist

The ? is acutally a spade symbol in my command window. Anyway, I hope that stops
the stupid complaints from my direction for a while. And now I know what and
where I should be looking for the bug list. SourceForge has just enough of a bug
list to fool me into thinking that's where I should be looking.

Thanks Again,
John Heron

Sigbjorn Finne wrote:

> John Heron [email protected]
/* <![CDATA[ */
(function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
/* ]]> */
writes:
> >
> > I just installed ghc 5.02 on my NT 4.0 machine, and I'm wondering if the
> > import chasing is broken for ghc-5.02 on Windows NT? Or perhaps there is
> > yet another thing I don't understand about Haskell's environment or
> > modules?  I got the following complaints when trying to compile Sigborn
> > Finne's Win32 example hello.lhs
> > (http://www.dcs.gla.ac.uk/~sof/hello.lhs):
> >
> > F:\stuff>ghc -o hello hello.lhs
> >
> > hello.lhs:14:
> >     failed to load interface for `Win32':
> >         Could not find interface file for `Win32'
> ...
>
> Hi,
>
> have a look at the top of that file - it tells you what options you need to
> feed
> GHC to compile the example (well, the options it suggests are deprecated
> by The Powers That Be; you ought to use "-package" instead of "-syslib").
>
> Simpler yet, try running it via ghci:
>
>   c:\src\haskell> ghci -package win32 hello.lhs
>
> and then evaluate 'main'.
>
> hth
> --sigbjorn
>
> btw, notice that ghc-5.02 currently has got a problem or two with the
> Win32 library -- see
>
> ml
>
> _______________________________________________