Scott J. [EMAIL PROTECTED] writes:
I have a question. Why are sets not implemented in Haskell?
What do you mean? Isn't
http://www.haskell.org/ghc/docs/latest/html/hslibs/set.html
sufficient? (Remember to tell GHC '-package data')
-kzm
--
If I haven't seen further, it is by
I'm sorry to bring up such petty issues, but this has been nagging me
for quite a long while now...
The Haskell mailing lists have one rather unflattering characteristic:
their mail threads are almost always broken.
I'll elaborate. Most mail user agents arrange messages in threads,
keeping
As far a I know sets can implemented by implementing a list of anything(a
list of all types) The sets Haskell does have are AFAIK sets of elements of
the same type: these are not general sets.
Scott
- Original Message -
From: Ketil Z. Malde [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
I'm trying to do a simple lex analyser in haskell
I defined the function lexi that is intended to break a string into tokens
returning them as a list but I received the following error:
ERROR TesteEval.hs:20 - Syntax error in input (unexpected symbol
restante)
isLetter:: Char - Bool
isLetter
There are three basic problems here. The first is the syntax error you
see, the second and third will become available once you fix the syntax
error.
lexi (a:x)
| isLetter a = token: lexi restante
where S = takeWhile isLetterorDigit x
line 20 -- restante =
Scott J. [EMAIL PROTECTED] wrote:
As far a I know sets can implemented by implementing a list of
anything(a list of all types) The sets Haskell does have are AFAIK
sets of elements of the same type: these are not general sets.
Ah. That's a static typing issue.
However, I don't think it's
Leon Smith wrote:
On Friday 16 August 2002 23:57, Scott J. wrote:
runST :: forall a ( forall s ST s a) - a ?
In logic forall x forall y statement(x.y) is equivalent to:
forall y forall x statement(x,y).
Now, using a different argument, since s does not appear free on
the R.H.S of
Does somebody know where can I find an example of a lexical and syntactic
analyzer for arithmetic and conditional statements in Haskell?
Thanks
_
Chat with friends online, try MSN Messenger: http://messenger.msn.com