[Haskell-cafe] Categories in base

2007-10-14 Thread Jean-Philippe Bernardy
Hello folks, Prompted by Ashley's proposal for Category class, I came up with the following module, which gives a summary of the overloading situation in the base package. Maybe it can help people find their way through all the available names... Failing that it surely was fun to come up with. :)

Re: [Haskell-cafe] Categories in base

2007-10-14 Thread David Menendez
On 10/14/07, Jean-Philippe Bernardy [EMAIL PROTECTED] wrote: instance Arrow a = Functor (a r) where -- (not defined as such in base, but ad-hoc) f $ g = pure f . g Similarly: instance Arrow a = Applicative (a r) where return a = pure (const a) a * b = pure (\(f,x) - f x) . a b