[Fwd: Graphics library for Hugs98?]

Paul Hudak paul.hudak@yale.edu
Mon, 04 Jun 2001 11:04:13 -0400


This is a multi-part message in MIME format.
--------------850B36E5EED54AD1D53C5B15
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Has any progress been made on making the latest Hugs work with the
latest graphics lib?  It seems a shame that people who read SOE can't
run the programs...

  -Paul
--------------850B36E5EED54AD1D53C5B15
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Path: news.ycc.yale.edu!arclight.uoregon.edu!logbridge.uoregon.edu!newsfeed.stanford.edu!news.isc.org!agilent.com!not-for-mail
From: "Jim Kerr" <jim_kerr@agilent.com>
Newsgroups: comp.lang.functional
Subject: Graphics library for Hugs98?
Date: Thu, 31 May 2001 14:52:01 -0700
Organization: Agilent Technologies
Message-ID: <991345981.517836@cswreg.cos.agilent.com>
NNTP-Posting-Host: cswreg.cos.agilent.com
X-Trace: cswtrans.cos.agilent.com 991345981 19088 130.29.154.45 (31 May 2001 21:53:01 GMT)
X-Complaints-To: usenet@cswtrans.cos.agilent.com
NNTP-Posting-Date: Thu, 31 May 2001 21:53:01 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Cache-Post-Path: cswreg.cos.agilent.com!unknown@141.121.41.20
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Xref: news.ycc.yale.edu comp.lang.functional:26036
MIME-Version: 1.0

  I recently bought a copy of Paul Hudak's "Haskell School of Expression",
and
it's interesting reading... but I'm stumped on trying to get the graphics
library to
work on Win 2000.

  I downloaded the Win32 version of the graphics library from
     http://haskell.cs.yale.edu/graphics/downloading.html
along with the graphics-2.0.3.src.zip file, dutifully followed the
instructions
about setting the search path, and got this:

__   __ __  __  ____   ___
_______________________________________________
||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2001
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: hugs-bugs@haskell.org
||   || Version: February 2001
_______________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions

Reading file "C:\Hugs98\lib\Prelude.hs":

Hugs session for:
C:\Hugs98\lib\Prelude.hs
Type :? for help
Prelude> :set -Pc:\Hugs98\win32;c:\Hugs98\graphics-2.0.3\lib\win32;
Prelude> :load C:\Hugs98\graphics-2.0.3\demos\HelloWorld.hs
Reading file "C:\Hugs98\graphics-2.0.3\demos\HelloWorld.hs":
Reading file "c:\Hugs98\graphics-2.0.3\lib\win32\GraphicsUtils.hs":
Reading file "c:\Hugs98\graphics-2.0.3\lib\win32\GraphicsCore.hs":
Reading file "c:\Hugs98\graphics-2.0.3\lib\win32\GraphicsTypes.hs":
[[ lots more of these ]]
Reading file "C:\Hugs98\lib\win32\Win32.hs":
Reading file "c:\Hugs98\graphics-2.0.3\lib\win32\GraphicsUtilities.hs":
Dependency analysis
ERROR c:\Hugs98\graphics-2.0.3\lib\win32\GraphicsUtilities.hs:72 - Illegal
type "IOResult a" in constructor application

  So...
   * Is this what is meant by the warnings on some web pages that the
graphics library doesn't work with
       Hugs Version February 2001?
    * If so, does anyone know when the graphics lib might be fixed?
    * Either way, is there a workaround that isn't too painful? I guess I
could roll back to an earlier version of Hugs
       if it comes to that.

  I saw an earlier post about the same problem on the Linux platform, but
the thread soon disappeared.

  Thanks for the help!

Jim Kerr
Software Engineer
Agilent Technologies
Santa Rosa, CA




--------------850B36E5EED54AD1D53C5B15--