[Haskell-cafe] Why the reluctance to introduce the Functor requirement on Monad?
Maciej Marcin Piechotka
uzytkownik2 at gmail.com
Tue Jul 26 01:38:04 CEST 2011
On Mon, 2011-07-25 at 00:11 -0400, August Sodora wrote:
> Out of (perhaps naive) curiosity, what difficulties does allowing such
> overriding introduce? Wouldn't the module system prevent the ambiguity
> of which implementation to use?
>
> August Sodora
> augsod at gmail.com
> (201) 280-8138
>
class A a where
a :: a
class A a => B b where
b :: b
a = b
class A a => C c where
c :: c
a = c
data BC = B | C deriving Show
instance B BC where
b = B
instance C BC where
c = C
show (a :: BC) == ???
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110726/b13dc4d4/attachment.pgp>
More information about the Haskell-Cafe
mailing list