[Fwd: Graphics library for Hugs98?]

Johan Nordlander nordland@cse.ogi.edu
Mon, 4 Jun 2001 10:30:02 -0700


The latest cvs version of Hugs works with the latest graphics 
library, thanks to some great work by Alastair.  We intend to 
release a new version with precompiled binaries and all in a few 
weeks time.  Everyone is encouraged to check their software 
against the cvs version and report any bugs or incompatibilities.

Point your browser to http://cvs.haskell.org/ for further directions.

All the best,
Johan

On Monday, June 4, 2001, at 08:04  AM, Paul Hudak wrote:

> 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
> From: "Jim Kerr" <jim_kerr@agilent.com>
> Date: Thu May 31, 2001  02:52:01  PM US/Pacific
> Subject: Graphics library for Hugs98?
>
>   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
>
>
>