String literals

Lennart Augustsson lennart at augustsson.net
Sat Nov 11 00:16:08 EST 2006


Pattern matching would work like pattern matching with numeric  
literals does.
You'll have to use equality comparison.  To pattern match the string  
type
would have to be in Eq as well.

	-- Lennart


On Nov 10, 2006, at 23:33 , Donald Bruce Stewart wrote:

> john:
>> On Fri, Nov 10, 2006 at 10:49:15PM -0500, Lennart Augustsson wrote:
>>> Any thoughts?
>>
>> what about pattern matching?
>
> Yes, pattern matching is the issue that occurs to me too.
> While string literals :: ByteString would be nice (and other magic
> encoded in string literals,  I guess), what is the story for pattern
> matching on strings based on non-inductive types like arrays?
>
> -- Don
> _______________________________________________
> Haskell-prime mailing list
> Haskell-prime at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-prime



More information about the Haskell-prime mailing list