Re: [Haskell] same type multiply implementing a class

2007-03-16 Thread Brett Giles
Note the live version of this on haskell wiki is at: http://www.haskell.org/haskellwiki/Wrapper_types The link below is for the old non-editible version of the haskel wiki. On Thu, 2007-03-15 at 15:34 -0600, Derek Elkins wrote: > Wolfgang Jeltsch wrote: > > Am Donnerstag, 15. März 2007 03:23 schri

Re: [Haskell] same type multiply implementing a class

2007-03-15 Thread Derek Elkins
Wolfgang Jeltsch wrote: Am Donnerstag, 15. März 2007 03:23 schrieb Daniel Mahler: Is there any way for the same type to implement a typeclass multiple ways. You can wrap the type using newtype, thus creating a new type which can implement type class methods differently. This technique is so

Re: [Haskell] same type multiply implementing a class

2007-03-15 Thread Wolfgang Jeltsch
Am Donnerstag, 15. März 2007 03:23 schrieb Daniel Mahler: > Is there any way for the same type to implement a typeclass multiple ways. You can wrap the type using newtype, thus creating a new type which can implement type class methods differently. > […] Best wishes, Wolfgang __

[Haskell] same type multiply implementing a class

2007-03-14 Thread Daniel Mahler
Is there any way for the same type to implement a typeclass multiple ways. The particular situation I have in mind is composing two monad trasformers of the same type, say reader monad. In pure theory one reader can lift through another, but in an implementation one gets a name clash. thanks Dan