Functor Value.

This commit is contained in:
Felipe Lessa 2014-07-12 12:00:54 -03:00
parent bfdb140e46
commit ba577a0111

View File

@ -354,6 +354,11 @@ data Value a = Value a deriving (Eq, Ord, Show, Typeable)
-- <https://ghc.haskell.org/trac/ghc/ticket/6124>
-- | /Since: 1.4.4/
instance Functor Value where
fmap f (Value a) = Value (f a)
-- | Unwrap a 'Value'.
--
-- /Since: 1.4.1/