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


  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: [EMAIL PROTECTED]
||   || 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





Reply via email to