[Haskell-beginners] Check constructor's field numeric value at compile time

Kim-Ee Yeoh ky3 at atamo.com
Wed Sep 3 03:07:53 UTC 2014


On Wed, Sep 3, 2014 at 2:32 AM, Dmitriy Matrosov <sgf.dma at gmail.com> wrote:

> How can i write this constraints so they're checked at compile time, not
> at runtime?


Smart constructors won't check them at compile time but it does the next
best thing, which is validate at the earliest possible moment.



-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140903/9f6c7331/attachment.html>


More information about the Beginners mailing list