Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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 <[email protected]>
Subject: [Haskell-beginners] Hugs/Haskell Bug
To: [email protected]
Message-ID:
<[email protected]>
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 <[email protected]>
Subject: Re: [Haskell-beginners] Hugs/Haskell Bug
Cc: [email protected]
Message-ID:
<[email protected]>
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
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 26, Issue 43
*****************************************