[EMAIL PROTECTED] writes:
> 
> I just this minute downloaded the self extracting Win32 Hugs 
> and tried this:
> 
> module Hello where
> import Graphics
> 
 ...
> ERROR "C:\Programs\funclang\hugs\hw.hs" (line 5): Undefined 
> constructor function "draw"
>

Hi,

add 'import OldLib', and you should be fine. (Intuitive?
I'll let you be the judge. ;-)

> 
> PS.
> 
> I just tried importing Win32 and got:
> 
> ERROR "C:\Programs\funclang\hugs\hw.hs": Entity "readFile" 
> imported from
> module
> "Win32" already defined in module "Prelude"
> 
..
> 

You'll want to be doing

  import Win32 hiding (readFile, writeFile)

to avoid the clash with the Prelude. Changing the Win32 library to
steer clear of this sorry situation would be a Win (Imho).

hth
--sigbjorn

Reply via email to