Changes between Version 20 and Version 21 of Commentary/Compiler/GenericDeriving


Ignore:
Timestamp:
Apr 28, 2011 9:58:55 AM (4 years ago)
Author:
dreixel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/GenericDeriving

    v20 v21  
    1515class Encode a where 
    1616  encode :: a -> [Bit] 
    17   generic encode :: (Representable0 a, Encode1 (Rep a)) => a -> [Bit] 
     17  default encode :: (Representable0 a, Encode1 (Rep a)) => a -> [Bit] 
    1818  encode = encode1 . from0 
    1919}}}