[Haskell-cafe] deriving

PR Stanley prstanley at ntlworld.com
Mon Apr 7 12:12:30 EDT 2008


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



More information about the Haskell-Cafe mailing list