[Haskell-cafe] Constructor constraints

Rich Neswold rich.neswold at gmail.com
Tue Sep 20 12:38:47 EDT 2005


On 9/20/05, Malcolm Wallace <Malcolm.Wallace at cs.york.ac.uk> wrote:
> 
> You can make a 'smart' constructor function, and hide the real data
> constructor so that it cannot be used:
> 

Thanks! I'll give your solution a try.

-- 
Rich

AIM : rnezzy
ICQ : 174908475
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell-cafe/attachments/20050920/2580c4e5/attachment-0001.htm


More information about the Haskell-Cafe mailing list