Changes between Version 6 and Version 7 of NewtypeDeriving


Ignore:
Timestamp:
Mar 31, 2006 10:57:47 PM (9 years ago)
Author:
ross@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewtypeDeriving

    v6 v7  
    55
    66The `deriving` clause on a `newtype` can list any class.  For any class except `Read`, `Show`, `Typeable` or `Data`, the instance is "the same" as for the wrapped type.
     7
     8There are restrictions on the syntactic form of the `newtype`, and this mechanism also cannot be used with recursive newtypes.
    79
    810== Examples ==
     
    3436
    3537== References ==
    36  * [http://www.haskell.org/ghc/docs/latest/html/users_guide/type-extensions.html#newtype-deriving  GHC documentation]
     38 * [http://www.haskell.org/ghc/docs/latest/html/users_guide/type-extensions.html#newtype-deriving  Generalised derived instances for newtypes] in the GHC User's Guide
    3739
    3840== Tickets ==
     
    4446== Cons ==
    4547 * difficult to specify without saying "the same representation"
     48   ([http://www.haskell.org/pipermail/haskell-prime/2006-March/001161.html first attempt])