1
{-# OPTIONS_NHC98 -prelude #-}
2
-----------------------------------------------------------------------------
6
module Control.Monad.Instances (Functor(..),Monad(..)) where
10
instance Functor ((,) a) where
11
fmap f (x,y) = (x, f y)
13
instance Functor (Either a) where
14
fmap _ (Left x) = Left x
15
fmap f (Right y) = Right (f y)