
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 `.')

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
participants (2)
-
David Webster
-
Stephen Tetley