Merge major into master

This commit is contained in:
github-actions[bot] 2024-06-24 06:59:42 +00:00 committed by GitHub
commit a2993a405a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,7 @@
# 1.8
- Move to "iproute" from "network-ip" for the "inet" datatype (#163).
# 1.7
- Decidable instance on `Encoders.Params` removed. It was useless and limited the design.

View File

@ -1 +1,4 @@
packages: .
allow-newer:
, *:base
, *:template-haskell

View File

@ -1,6 +1,6 @@
cabal-version: 3.0
name: hasql
version: 1.7.0.2
version: 1.8
category: Hasql, Database, PostgreSQL
synopsis: Fast PostgreSQL driver with a flexible mapping API
description:
@ -140,9 +140,9 @@ library
dlist >=0.8 && <0.9 || >=1 && <2,
hashable >=1.2 && <2,
hashtables >=1.1 && <2,
iproute >=1.7 && <1.8,
mtl >=2 && <3,
network-ip >=0.3.0.3 && <0.4,
postgresql-binary >=0.13.1 && <0.14,
postgresql-binary >=0.14 && <0.15,
postgresql-libpq ==0.10.1.0,
profunctors >=5.1 && <6,
scientific >=0.3 && <0.4,

View File

@ -3,6 +3,7 @@
module Hasql.Decoders.All where
import Data.Aeson qualified as Aeson
import Data.IP qualified as Iproute
import Data.Vector.Generic qualified as GenericVector
import Hasql.Decoders.Array qualified as Array
import Hasql.Decoders.Composite qualified as Composite
@ -12,7 +13,6 @@ import Hasql.Decoders.Row qualified as Row
import Hasql.Decoders.Value qualified as Value
import Hasql.Prelude hiding (bool, maybe)
import Hasql.Prelude qualified as Prelude
import Network.IP.Addr qualified as NetworkIp
import PostgreSQL.Binary.Decoding qualified as A
-- * Result
@ -255,7 +255,7 @@ uuid = Value (Value.decoder (const A.uuid))
-- |
-- Decoder of the @INET@ values.
{-# INLINEABLE inet #-}
inet :: Value (NetworkIp.NetAddr NetworkIp.IP)
inet :: Value Iproute.IPRange
inet = Value (Value.decoder (const A.inet))
-- |

View File

@ -4,13 +4,13 @@ module Hasql.Encoders.All where
import Data.Aeson qualified as Aeson
import Data.ByteString.Lazy qualified as LazyByteString
import Data.IP qualified as Iproute
import Hasql.Encoders.Array qualified as Array
import Hasql.Encoders.Params qualified as Params
import Hasql.Encoders.Value qualified as Value
import Hasql.PostgresTypeInfo qualified as PTI
import Hasql.Prelude hiding (bool)
import Hasql.Prelude qualified as Prelude
import Network.IP.Addr qualified as NetworkIp
import PostgreSQL.Binary.Encoding qualified as A
import Text.Builder qualified as C
@ -209,7 +209,7 @@ uuid = Value (Value.unsafePTIWithShow PTI.uuid (const A.uuid))
-- |
-- Encoder of @INET@ values.
{-# INLINEABLE inet #-}
inet :: Value (NetworkIp.NetAddr NetworkIp.IP)
inet :: Value Iproute.IPRange
inet = Value (Value.unsafePTIWithShow PTI.inet (const A.inet))
-- |