mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-29 14:15:07 +03:00
Add notices about multidimensional arrays
This commit is contained in:
parent
3fcbcb23ba
commit
de0e34b62e
@ -367,6 +367,9 @@ This function is merely a shortcut to the following expression:
|
||||
@
|
||||
('array' . 'dimension' Control.Monad.'replicateM' . 'element')
|
||||
@
|
||||
|
||||
Please notice that in case of multidimensional arrays nesting 'listArray' decoder
|
||||
won't work. You have to explicitly construct the array decoder using 'array'.
|
||||
-}
|
||||
{-# INLINE listArray #-}
|
||||
listArray :: NullableOrNot Value element -> Value [element]
|
||||
@ -380,6 +383,9 @@ This function is merely a shortcut to the following expression:
|
||||
@
|
||||
('array' . 'dimension' Data.Vector.Generic.'GenericVector.replicateM' . 'element')
|
||||
@
|
||||
|
||||
Please notice that in case of multidimensional arrays nesting 'vectorArray' decoder
|
||||
won't work. You have to explicitly construct the array decoder using 'array'.
|
||||
-}
|
||||
{-# INLINE vectorArray #-}
|
||||
vectorArray :: GenericVector.Vector vector element => NullableOrNot Value element -> Value (vector element)
|
||||
|
@ -316,6 +316,9 @@ This function is merely a shortcut to the following expression:
|
||||
@
|
||||
('array' . 'dimension' 'foldl'' . 'element')
|
||||
@
|
||||
|
||||
Please notice that in case of multidimensional arrays nesting 'foldableArray' encoder
|
||||
won't work. You have to explicitly construct the array encoder using 'array'.
|
||||
-}
|
||||
{-# INLINE foldableArray #-}
|
||||
foldableArray :: Foldable foldable => NullableOrNot Value element -> Value (foldable element)
|
||||
|
Loading…
Reference in New Issue
Block a user