Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://www.haskell.org/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Hugs/Haskell Bug (David Webster) 2. Re: Hugs/Haskell Bug (Stephen Tetley) ---------------------------------------------------------------------- Message: 1 Date: Sat, 21 Aug 2010 20:08:41 -0700 From: David Webster <dwwebste...@gmail.com> Subject: [Haskell-beginners] Hugs/Haskell Bug To: beginners@haskell.org Message-ID: <aanlktind5ew7qvaazm3vj-0b-+wwd+vzhcj2vr8s+...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" This a test post to see if Imam doing this right. I am trying to boot my way into Haskell/Hugs by tgrying things to see what happens. Ehen I try the :load shown below, I get the resulting error. Am I doing something wrong , or is hee a bug? I am using Hugs Version 2006 David Webster Hugs> :load "C:\\Program Files\\WinHugs\\demos\\Cabal\\hapax.hs" ERROR file:{Hugs}\packages\base\Text\ParserCombinators\ReadP.hs:156 - Syntax error in type expression (unexpected `.') -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100821/e012fb80/attachment-0001.html ------------------------------ Message: 2 Date: Sun, 22 Aug 2010 08:17:01 +0100 From: Stephen Tetley <stephen.tet...@gmail.com> Subject: Re: [Haskell-beginners] Hugs/Haskell Bug Cc: beginners@haskell.org Message-ID: <aanlkti=emskhd-3uc_vp7srfjzgmiqgbcwqaxm5wo...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hello David I've an older version of Hugs installed (Hugs 2003), but the the top line of ReadP.hs has this pragma: {-# OPTIONS -fglasgow-exts -fno-implicit-prelude #-} This means you must to run Hugs with extensions, for the Hugs 2003 that meant running with the command line option / -98 /. For Hugs 2006 this might have changed, though the initial load message should tell you how to enable extensions. Hugs is now rather out-of-date unfortunately, unless you are following a text book that uses it, or a running on a platform were GHC won't work, then the standard advice nowadays is to use GHC. GHC has an interpreter, GHCi, that is very similar to Hugs. Best wishes Stephen ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 26, Issue 43 *****************************************