Functor Value.
This commit is contained in:
parent
bfdb140e46
commit
ba577a0111
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user