Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
1753a4cb4This file is pinned to the selected release. Download the original to open it in your design tool.
module Flite.Identity where
import Control.Monad (liftM, ap)
import Control.Applicative (Applicative(..))
newtype Identity a = I { runIdentity :: a }
instance Monad Identity where
I a >>= f = f a
instance Functor Identity where
fmap = liftM
instance Applicative Identity where
pure = I
(<*>) = ap