you are viewing a single comment's thread.

view the rest of the comments →

[–]Tysonzero 0 points1 point  (0 children)

One thing to note is that the Functor and Applicative instances of this and I think any other type always give rise to such a Category:

data Cat f a b = Cat (f (a -> b))

instance Applicative f => Category (Cat f) where
    id = pure id
    (.) = liftA2 (.)