[Haskell-cafe] Implicit newtype unwrapping

Matthew Pocock matthew.pocock at ncl.ac.uk
Thu Dec 3 06:15:08 EST 2009


Of course, I meand 'deriving', not 'defining'

/me embarsed

2009/12/3 Matthew Pocock <matthew.pocock at ncl.ac.uk>

> Perhaps what you are looking for is a more powerful "defining" semantics?
>
> newtype MyFoo = Foo defining (Foo(..)) -- all class instances that Foo has
> are delegated through from MyFoo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091203/35e2b7c9/attachment.html


More information about the Haskell-Cafe mailing list