Correct the grammar in docs

This commit is contained in:
Nikita Volkov 2019-05-21 21:34:01 +03:00
parent 37002e6530
commit 296de5498b
2 changed files with 4 additions and 4 deletions

View File

@ -324,7 +324,7 @@ jsonbBytes :: (ByteString -> Either Text a) -> Value a
jsonbBytes fn = Value (Value.decoder (const (A.jsonb_bytes fn)))
{-|
Lifts a custom value decoder function to a 'Value' decoder.
Lift a custom value decoder function to a 'Value' decoder.
-}
{-# INLINABLE custom #-}
custom :: (Bool -> ByteString -> Either Text a) -> Value a
@ -352,14 +352,14 @@ enum :: (Text -> Maybe a) -> Value a
enum mapping = Value (Value.decoder (const (A.enum mapping)))
{-|
Lifts the 'Array' decoder to a 'Value' decoder.
Lift an 'Array' decoder to a 'Value' decoder.
-}
{-# INLINABLE array #-}
array :: Array a -> Value a
array (Array imp) = Value (Value.decoder (Array.run imp))
{-|
Lifts the 'Composite' decoder to a 'Value' decoder.
Lift a 'Composite' decoder to a 'Value' decoder.
-}
{-# INLINABLE composite #-}
composite :: Composite a -> Value a

View File

@ -310,7 +310,7 @@ vectorOfInts :: Value (Vector Int64)
vectorOfInts = 'foldableArray' ('nonNullable' 'int8')
@
This function is merely a shortcut for the following expression:
This function is merely a shortcut to the following expression:
@
('array' . 'dimension' 'foldl'' . 'element')