This commit is contained in:
Nikita Volkov 2015-11-21 13:20:44 +03:00
parent 6fe2069c5b
commit 9d5687e4de

View File

@ -654,14 +654,14 @@ newtype Composite a =
deriving (Functor, Applicative, Monad)
-- |
-- Lift a 'Value' deserializer into an 'Composite' deserializer for parsing of non-nullable leaf values.
-- Lift a 'Value' deserializer into a 'Composite' deserializer for parsing of non-nullable leaf values.
{-# INLINABLE compositeValue #-}
compositeValue :: Value a -> Composite a
compositeValue (Value imp) =
Composite (Composite.nonNullValue (Value.run imp))
-- |
-- Lift a 'Value' deserializer into an 'Composite' deserializer for parsing of nullable leaf values.
-- Lift a 'Value' deserializer into a 'Composite' deserializer for parsing of nullable leaf values.
{-# INLINABLE compositeNullableValue #-}
compositeNullableValue :: Value a -> Composite (Maybe a)
compositeNullableValue (Value imp) =