<NME> Encoders.hs
<BEF> -- |
-- A DSL for declaration of statement parameter encoders.
--
-- For compactness of names all the types defined here imply being an encoder.
-- E.g., the `Array` type is an __encoder__ of arrays, not the data-structure itself.
module Hasql.Encoders
  ( -- * Parameters product
    Params,
    noParams,
    param,

    -- * Nullability
    NullableOrNot,
    nonNullable,
    nullable,

    -- * Value
    Value,
    bool,
    int2,
    int4,
    int8,
    float4,
    float8,
    numeric,
    char,
    text,
    bytea,
    date,
    timestamp,
    timestamptz,
    time,
    timetz,
    interval,
    uuid,
    inet,
    json,
    jsonBytes,
    jsonLazyBytes,
    jsonb,
    jsonbBytes,
    jsonbLazyBytes,
    name,
    oid,
    enum,
    unknown,
    array,
    foldableArray,
    composite,

    -- * Array
    Array,
    element,
    dimension,

    -- * Composite
    Composite,
    field,
  )
where

import Hasql.Private.Encoders
--         contrazip3 (vector Encoders.uuid) (vector Encoders.float8) (vector Encoders.float8)
--         where
--           vector value =
--             Encoders.value (Encoders.array (Encoders.dimension foldl' (Encoders.element value)))
--       decoder =
--         Decoders.unit
-- @

<MSG> Merge pull request #109 from rl-king/update-array-example

Rename `value` -> `param` in Encoders Array docs example
<DFF> @@ -553,7 +553,7 @@ dimension foldl (Array imp) =
 --         contrazip3 (vector Encoders.uuid) (vector Encoders.float8) (vector Encoders.float8)
 --         where
 --           vector value =
---             Encoders.value (Encoders.array (Encoders.dimension foldl' (Encoders.element value)))
+--             Encoders.param (Encoders.array (Encoders.dimension foldl' (Encoders.element value)))
 --       decoder =
 --         Decoders.unit
--- @
\ No newline at end of file
+-- @

{'addition_count': 2, 'commit_subject': 'Merge pull request #109 from rl-king/update-array-example', 'deletion_count': 2, 'file_extension': '.hs', 'lang': 'hs', 'license': 'mit', 'repo_name': 'nikita-volkov/hasql'}