apple-0.1.0.0: src/Data/Copointed.hs
module Data.Copointed ( Copointed (..)
) where
class Functor p => Copointed p where
copoint :: p a -> a
instance Copointed ((,) a) where
copoint (_, y) = y
module Data.Copointed ( Copointed (..)
) where
class Functor p => Copointed p where
copoint :: p a -> a
instance Copointed ((,) a) where
copoint (_, y) = y