trying to run programs

Johansson Mikael mikael.mj.johansson@volvo.com
Mon, 20 Aug 2001 08:49:51 +0200


hello

I'm starting up using a GHC-compiler and have successfully compiled a =
simple
"Hello World" program. Thanks for the responses.
Now I'm trying to use some simple programs from haskell.org/hugs but =
there are
problems.=20

Compilation Dump for: C:/cygnus/usr/local/ghc/lib/hsc=20
C:/TEMP/ghc231.cpp 2>>=20
error=20
-fignore-interface-pragmas=20
-fomit-interface-pragmas=20
-fsimplify [ -fmax-simplifier-iterations4 ]  =20
-fwarn-overlapping-patterns=20
-fwarn-missing-methods=20
-fwarn-missing-fields=20
-fwarn-deprecations=20
-fwarn-duplicate-exports=20
-fhi-version=3D408=20
-static=20
"-himap=3D.%.hi:C:/cygnus/usr/local/ghc/lib/imports/std%.hi"=20
"-himap-sep=3D:"    =20
-hifile=3DC:/TEMP/ghc231.hi=20
-olang=3Dasm=20
-ofile=3DC:/TEMP/ghc231.s=20
-F=3DC:/TEMP/ghc231_stb.c=20
-FH=3DC:/TEMP/ghc231_stb.h +RTS=20
-H6000000=20
-K1000000

AnsiDemo.hs:10: Variable not in scope: `writeStr'
AnsiDemo.hs:11: Variable not in scope: `cls'
AnsiDemo.hs:11: Variable not in scope: `at'
AnsiDemo.hs:11: Variable not in scope: `highlight'
AnsiDemo.hs:11: Variable not in scope: `pressAnyKey'
AnsiDemo.hs:11: Variable not in scope: `promptReadAt'
AnsiDemo.hs:21: Variable not in scope: `writeAt'
AnsiDemo.hs:21: Variable not in scope: `moveTo'
AnsiDemo.hs:21: Variable not in scope: `end'
Compilation had errors

It seems some object are missing. I have tried to find them=20
in ghc/lib/imports and others but haven't succeded.
Is there some libraries I need to run these hugs-files on
my ghc-compiler?

regards




Mikael Johansson=20

Volvo Aero Corporation
Military Engines Trollh=E4ttan
Dept. 7164MJ
SE-461 81 Trollh=E4ttan, Sweden
phone +46 520 940 61
e-mail: mikael.mj.johansson@volvo.com