pqueue-1.3.1 / Control / Applicative / Identity.hs
module Control.Applicative.Identity whereimport Control.Applicativenewtype 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)