Array -package:text
Marshalling support: routines allocating, storing, and retrieving
Haskell lists that are represented as arrays in the foreign language
The type of immutable non-strict (boxed) arrays with indices in
i and elements in e.
A JSON "array" (sequence).
WARNING
This module is considered internal.
The Package Versioning Policy does not apply.
The contents of this module may change in any way whatsoever
and without any warning between minor versions of this package.
Authors importing this module are expected to track development
closely.
Description
Zero based arrays.
Note that no bounds checking are performed.
Basic non-strict arrays.
Note: The
Data.Array.IArray module provides a more
general interface to immutable arrays: it defines operations with the
same names as those defined below, but with more general types, and
also defines
Array instances of the relevant classes. To use
that more general interface, import
Data.Array.IArray but not
Data.Array.
The type of immutable non-strict (boxed) arrays with indices in
i and elements in e.
Primitive arrays of boxed values.
Generic array encoder.
Here's an example of its usage:
someParamsEncoder :: Params [[Int64]]
someParamsEncoder = param (nonNullable (array (dimension foldl' (dimension foldl' (element (nonNullable int8))))))
Please note that the PostgreSQL
IN keyword does not accept an
array, but rather a syntactical list of values, thus this encoder is
not suited for that. Use a
value = ANY($1) condition instead.
Interface to JavaScript array