Dear devellopers,

I'm new to HUGS, but I have some experience in programming. (Teacher of math and 
CS in an german High School).

I use hugs98/Feb2000 for Window98, but in trying some code in the demos I found 
some errors.
I will report to   [EMAIL PROTECTED] as recommended. 

(1.) TRYING LSDF.hs results in:
...
Compiling......................................................................
Reading file "\hugs\libhugs\LazyST.hs":
Parsing................
ERROR "\hugs\libhugs\LazyST.hs" (line 48): Syntax error in type expression (unex
pected `.')
Monad>
primitive runST :: (forall s . ST s a) -> a
                             ^
                             !
------------------------    
Reason: misplaced point.
But after correcting, that is cancelling the "." I get:
------------------------
..
Parsing........................................................................
Dependency analysis............................................................
Type checking..................................................................
Compiling......................................................................
Reading file "\hugs\demos\ldfs.hs":
Parsing........................................................................
Dependency analysis............................................................
Type checking.......
ERROR "\hugs\demos\ldfs.hs" (line 93): Type error in application
*** Expression     : runST (mkEmpty bnds >>= (\m -> chop m ts))
*** Term           : mkEmpty bnds >>= (\m -> chop m ts)
*** Type           : ST d [Tree Vertex]
*** Does not match : a b ST b c
         
Question: What is going wrong?

(2.) I want to try graphics too. So I was loading gtest.hs (graphic test), which 
gives:
..
\hugs\lib\Prelude.hs
Type :? for help
Prelude> :load gtest
Reading file "\hugs\graphicslib\gtest.hs":
Parsing........................................................................
Reading file "\hugs\graphicslib\Graphics.hs":
Parsing........................................................................

Reading file "\hugs\graphicslib\GraphicsWindows.hs":
Parsing........................................................................
Reading file "\hugs\graphicslib\GraphicsWND.hs":
Parsing........................................................................
Reading file "\hugs\graphicslib\GraphicsEvent.hs":
Parsing........................................................................
Reading file "\hugs\graphicslib\GraphicsTypes.hs":
Parsing........................................................................
Reading file "Win32":
ERROR "Win32": Unable to open file "Win32"
Prelude>

Question: What is going wrong?

Yours
Wolfgang

----------------------+---------------------------------------------
 Wolfgang Lindner     | EMAIL: [EMAIL PROTECTED]
 Stieglitzweg 6       | 
 D 42799 Leichlingen  | Phone: (02175) 71163 
 Germany (Europe)     |
----------------------+---------------------------------------------



Reply via email to