mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-26 01:33:08 +03:00
Correct the grammar in docs
This commit is contained in:
parent
37002e6530
commit
296de5498b
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user