hasql 1.3.0.3 → 1.3.0.5
raw patch · 2 files changed
+9/−11 lines, 2 filesdep ~text-builderPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: text-builder
API changes (from Hackage documentation)
- Hasql.Decoders: instance Data.Default.Class.Default (Hasql.Decoders.Row a) => Data.Default.Class.Default (Hasql.Decoders.Result (GHC.Base.Maybe a))
- Hasql.Decoders: instance Data.Default.Class.Default (Hasql.Decoders.Value a) => Data.Default.Class.Default (Hasql.Decoders.Row (GHC.Base.Maybe a))
+ Hasql.Decoders: instance Data.Default.Class.Default (Hasql.Decoders.Row a) => Data.Default.Class.Default (Hasql.Decoders.Result (GHC.Maybe.Maybe a))
+ Hasql.Decoders: instance Data.Default.Class.Default (Hasql.Decoders.Value a) => Data.Default.Class.Default (Hasql.Decoders.Row (GHC.Maybe.Maybe a))
- Hasql.Session: ClientError :: (Maybe ByteString) -> CommandError
+ Hasql.Session: ClientError :: Maybe ByteString -> CommandError
- Hasql.Session: ServerError :: ByteString -> ByteString -> (Maybe ByteString) -> (Maybe ByteString) -> ResultError
+ Hasql.Session: ServerError :: ByteString -> ByteString -> Maybe ByteString -> Maybe ByteString -> ResultError
- Hasql.Statement: Statement :: ByteString -> (Params a) -> (Result b) -> Bool -> Statement a b
+ Hasql.Statement: Statement :: ByteString -> Params a -> Result b -> Bool -> Statement a b
Files
- hasql.cabal +3/−5
- library/Hasql/Encoders.hs +6/−6
hasql.cabal view
@@ -1,7 +1,7 @@ name: hasql version:- 1.3.0.3+ 1.3.0.5 category: Hasql, Database, PostgreSQL synopsis:@@ -9,9 +9,7 @@ description: This package is the root of the \"hasql\" ecosystem. .- The API is completely disinfected from exceptions. All error-reporting is explicit and is presented using the 'Either' type.- .- The version 1 is completely backward-compatible with 0.19.+ The API comes free from all kinds of exceptions. All error-reporting is explicit and is presented using the 'Either' type. homepage: https://github.com/nikita-volkov/hasql bug-reports:@@ -85,7 +83,7 @@ vector >= 0.10 && < 0.13, hashtables >= 1.1 && < 2, text >= 1 && < 2,- text-builder >= 0.5.1.1 && < 0.6,+ text-builder >= 0.6.1.2 && < 0.7, bytestring >= 0.10 && < 0.11, hashable >= 1.2 && < 1.3, -- control:
library/Hasql/Encoders.hs view
@@ -67,7 +67,7 @@ -- @ -- someParamsEncoder :: 'Params' (Int64, Maybe Text) -- someParamsEncoder =--- 'contramap' 'fst' ('value' 'int8') '<>'+-- 'contramap' 'fst' ('param' 'int8') '<>' -- 'contramap' 'snd' ('nullableParam' 'text') -- @ -- @@ -79,7 +79,7 @@ -- @ -- someParamsEncoder :: 'Params' (Int64, Maybe Text) -- someParamsEncoder =--- 'contrazip2' ('value' 'int8') ('nullableParam' 'text')+-- 'contrazip2' ('param' 'int8') ('nullableParam' 'text') -- @ -- -- Here's how you can implement encoders for custom composite types:@@ -93,9 +93,9 @@ -- -- personParams :: 'Params' Person -- personParams =--- 'contramap' name ('value' 'text') '<>'--- 'contramap' gender ('value' genderValue) '<>'--- 'contramap' (fromIntegral . age) ('value' 'int8')+-- 'contramap' name ('param' 'text') '<>'+-- 'contramap' gender ('param' genderValue) '<>'+-- 'contramap' (fromIntegral . age) ('param' 'int8') -- -- genderValue :: 'Value' Gender -- genderValue =@@ -553,7 +553,7 @@ -- 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 -- @