[Haskell-cafe] deriving

Conal Elliott conal at conal.net
Mon Apr 7 12:25:32 EDT 2008


I'm not getting it.  Are you thinking that Bool itself "is derived form
these classes", rather than those four instances for Bool?  - Conal

On Mon, Apr 7, 2008 at 9:12 AM, PR Stanley <prstanley at ntlworld.com> wrote:

> Hi
> data Bool = False | True
>  deriving (Eq, Or, Show, Read)
>
> Bool is an instance of Eq, Ord, Show and Read. It is derived form these
> classes. If that is the meaning of the keyword deriving then wouldn't a
> different keyword such as from or derivative or even derivation be closer to
> the semantics of the concept?
> Discuss :-)
>
> Cheers,
> Paul
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080407/6ff89024/attachment.htm


More information about the Haskell-Cafe mailing list