_______________________________________________ Haskell-prime mailing list Haskell-prime@haskell.org http://www.haskell.org/mailman/listinfo/haskell-prime
Tony, you're missing the point... Alexey isn't making a complete patch
to GHC/base libraries, just a hacky-looking demonstration. Alexey is
saying that in a class hierarchy (such as if Functor => Monad were a
hierarchy, or for that matter "XFunctor"=>"XMonad" or Eq => Ord), it is
still possible to define the superclass functions (fmap) in terms of the
subclass functions (return and >>=) (such as writing a functor instance
in which "fmap f m = m >>= (return . f)"). This has always been true in
Haskell, it just might not have been obvious.
- In opposition of Functor as super-class of Monad oleg
- Re: In opposition of Functor as super-class o... Martijn van Steenbergen
- Re: In opposition of Functor as super-class o... Dan Doel
- Re: In opposition of Functor as super-cla... Conor McBride
- Re: In opposition of Functor as super-class o... Alexey Khudyakov
- Re: In opposition of Functor as super-cla... Tony Morris
- Re: In opposition of Functor as super... Alexey Khudyakov
- Re: In opposition of Functor as s... Tony Morris
- Re: In opposition of Functor... Isaac Dupree
- Re: In opposition of Fun... Tony Morris
- Re: In opposition of... Iavor Diatchki
- Re: In opposition of Functor... Brandon S Allbery KF8NH
- Re: In opposition of Functor as super-class o... kahl
- Re: In opposition of Functor as super-class o... S. Doaitse Swierstra
- Re: In opposition of Functor as super-class o... Petr P
- Re: In opposition of Functor as super-cla... S. Doaitse Swierstra
- Re: In opposition of Functor as super... Duncan Coutts
- Re: In opposition of Functor as super... Petr P
- Re: In opposition of Functor as super-cla... Ben Franksen