hasql-postgres-options 0.1.0 → 0.1.1
raw patch · 2 files changed
+5/−12 lines, 2 filesdep −bytestringPVP ok
version bump matches the API change (PVP)
Dependencies removed: bytestring
API changes (from Hackage documentation)
Files
hasql-postgres-options.cabal view
@@ -1,7 +1,7 @@ name: hasql-postgres-options version:- 0.1.0+ 0.1.1 synopsis: An "optparse-applicative" parser for "hasql-postgres" category:@@ -50,7 +50,5 @@ -- optparse-applicative == 0.11.*, -- - bytestring == 0.10.*,- -- base-prelude >= 0.1.8 && < 0.2, base >= 4.5 && < 4.8
library/Hasql/Postgres/Options.hs view
@@ -1,7 +1,6 @@ module Hasql.Postgres.Options where import BasePrelude-import Data.ByteString (ByteString) import Options.Applicative import qualified Hasql.Postgres as HP @@ -13,7 +12,7 @@ HP.ParamSettings <$> host <*> port <*> user <*> password <*> database where host =- option auto $+ fmap fromString $ strOption $ long (applyPrefix "host") <> value "127.0.0.1" <> showDefault <>@@ -25,26 +24,22 @@ showDefault <> help "Server port" user =- option auto $+ fmap fromString $ strOption $ long (applyPrefix "user") <> value "postgres" <> showDefault <> help "Username" password =- option auto $+ fmap fromString $ strOption $ long (applyPrefix "password") <> value "" <> showDefault <> help "Password" database =- option auto $+ fmap fromString $ strOption $ long (applyPrefix "database") <> value "" <> showDefault <> help "Default database name" applyPrefix s = maybe s (<> ("-" <> s)) prefix----