pqueue-1.4.1.3: src/Control/Applicative/Identity.hs
module Control.Applicative.Identity where
import Control.Applicative
import Prelude
newtype 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)