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. Re: How do I use Guards in record syntax? (Kim-Ee Yeoh)
----------------------------------------------------------------------
Message: 1
Date: Mon, 14 Apr 2014 18:22:13 +0700
From: Kim-Ee Yeoh <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How do I use Guards in record syntax?
Message-ID:
<CAPY+ZdTJ=6cyeaawvc+4npwnb99r439opoen2zwtt4tgwz9...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
On Mon, Apr 14, 2014 at 1:03 PM, Dimitri DeFigueiredo <
[email protected]> wrote:
> oldbuysell :: String -- "buy", "sell" or ""
Why is this String when you've defined the perfectly cromulent BuyOrSell
datatype?
How can you be sure there won't be some accidental buggy code that sets the
field to "buyy"?
-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140414/976a45f9/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 70, Issue 29
*****************************************