Re: Bug with GraphicsLib

"Sigbjorn Finne" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <04c801c29fd5$bb614640$1e32a8c0@sofxp>
Hi there,

thanks for the report. I believe you're trying to use 'withRGB'
using code like the following:

  module Foo where
  import SOEGraphics
  bl = RGB 0 0 0

As you've guessed, due to the way the RGB type is exported
from SOEGraphics you cannot actually see its constructor. You
can fix this by having the export list of SOEGraphics say
"RGB(..)"  instead of just "RGB".

hth
--sigbjorn

----- Original Message ----- 
From: "Dennis Schieferdecker" <[email protected]>
To: <[email protected]>
Sent: Monday, December 09, 2002 14:42
Subject: Bug with GraphicsLib


> With the new version of Hugs98 (from November 2002) the GraphicsLib
> produces some problems:
> When using the withRGB function with the RGB datatype, Hugs doesn't
> recognize this datatype. The error is probably due to the new
> module-system, so that the RGB datatype doesn't get exportet.
> --
> ciao
> dennis
> 
> "I hear and I forget,
>  I see and I remember,
>  I do and I understand"
> 
> 
> _______________________________________________
> Hugs-Bugs mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/hugs-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.