packages feed

pqueue-1.4.1.4 / src / Control / Applicative / Identity.hs

module Control.Applicative.Identity whereimport Control.Applicativeimport Preludenewtype Identity a = Identity { runIdentity :: a }instance Functor Identity where  fmap f (Identity x) = Identity (f x)instance Applicative Identity where  pure = Identity  Identity f <*> Identity x = Identity (f x)