Re: Syntax error in ST.hs
| Newsgroups | gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Great! Thanks! Andy Moran <[email protected]> wrote: > >> 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 [email protected]= >om Tommy McGuire