Re: Syntax error in ST.hs
Andy Moran <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Organization | Galois Connections, Inc. |
| Message-ID | <[email protected]> |
> 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 [email protected]