I noticed this while going through the SOE book: $ hugs __ __ __ __ ____ ___ _________________________________________ || || || || || || ||__ Hugs 98: Based on the Haskell 98 standard ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2002 ||---|| ___|| World Wide Web: http://haskell.org/hugs || || Report bugs to: hugs-bugs@haskell.org || || Version: November 2002 _________________________________________ Haskell 98 mode: Restart with command line option -98 to enable extensions Reading file "/lusr/lib/hugs/lib/Prelude.hs": Hugs session for: /lusr/lib/hugs/lib/Prelude.hs Type :? for help Prelude> :load Memo Reading file "/lusr/lib/hugs/lib/exts/Memo.hs": Reading file "/lusr/lib/hugs/lib/exts/ST.hs": Reading file "/lusr/lib/hugs/lib/Array.hs": Reading file "/lusr/lib/hugs/lib/Ix.hs": Reading file "/lusr/lib/hugs/lib/List.hs": Reading file "/lusr/lib/hugs/lib/Maybe.hs": Reading file "/lusr/lib/hugs/lib/List.hs": Reading file "/lusr/lib/hugs/lib/Array.hs": Reading file "/lusr/lib/hugs/lib/exts/IOExts.hs": Reading file "/lusr/lib/hugs/lib/IO.hs": Reading file "/lusr/lib/hugs/lib/exts/IORef.lhs": Reading file "/lusr/lib/hugs/lib/exts/IOExts.hs": Reading file "/lusr/lib/hugs/lib/Monad.hs": Reading file "/lusr/lib/hugs/lib/exts/ST.hs": Parsing ERROR "/lusr/lib/hugs/lib/exts/ST.hs":49 - Syntax error in type expression (unexpected `.') Monad> I don't know enough about Haskell to figure out what the problem is. There are at least a couple other modules in the exts directory that apparently show similar errors: ParsecToken, LazyST. Am I looking at a bug or did I do something wrong? Tommy McGuire
I noticed this while going through the SOE book:
$ hugs ERROR "/lusr/lib/hugs/lib/exts/ST.hs":49 - Syntax error in type expression (unexpected `.')
This is due to the fact that ST.hs uses forall types, which are not part of Haskell 98. The error reflects is due to the "." in "(forall s . ST s a) -> a" because that's not part of Haskell 98 type syntax. Run hugs with -98 to use this and many other extensions, and you should be fine. A -- Andy Moran Ph. (503) 526 3472 Galois Connections Inc. Fax. (503) 350 0833 3875 SW Hall Blvd. http://www.galois.com Beaverton, OR 97005 moran@galois.com
Great! Thanks!
Andy Moran
I noticed this while going through the SOE book:
$ hugs ERROR "/lusr/lib/hugs/lib/exts/ST.hs":49 - Syntax error in type expression (unexpected `.')=20
This is due to the fact that ST.hs uses forall types, which are not part = of=20 Haskell 98. The error reflects is due to the "." in "(forall s . ST s a)= =20 -> a" because that's not part of Haskell 98 type syntax.
Run hugs with -98 to use this and many other extensions, and you should b= e=20 fine.
A
--=20 Andy Moran Ph. (503) 526 34= 72 Galois Connections Inc. Fax. (503) 350 08= 33 3875 SW Hall Blvd. http://www.galois.c= om Beaverton, OR 97005 moran@galois.c= om
Tommy McGuire
participants (2)
-
Andy Moran -
mcguire@cs.utexas.edu