Definition
class Functor m => Applicative m where
pure :: a -> m a
(<$>) :: m (a -> b) -> m a -> m bAs you notice, to define something as an Applicative it must already be defined as a Functor.
1 min read
class Functor m => Applicative m where
pure :: a -> m a
(<$>) :: m (a -> b) -> m a -> m bAs you notice, to define something as an Applicative it must already be defined as a Functor.