úÎ>;U#      !"(c) 2016 Al ZohaliBSD3Al Zohali <zohl@fmap.me> experimentalNone%&,59:;<=DIQRT,Representation of a function's return value.4Representation of a resultant's column (name, type).TRepresentation of a PostrgeSQL function signature (schema, name, arguments, result).BRepresentation of a function's argument (name, type, is optional). DThe exception is thrown when something goes wrong with this package. yThrown when parser fails to process a function declaration. Arguments of the constructor: error message from the parser.  Thrown when Argumenth expected to have default value while it doesn't. Actually this should never happen, but we all know... OTakes PostgreSQL function signature and represent it as an algebraic data type.      (c) 2016 Al ZohaliBSD3Al Zohali <zohl@fmap.me> experimentalNone%&,59:;<=DIQRT;Options that specify how to construct the function binding.)Function that generates name of a bindingRemove # constructor.Remove list and # constructors.(c) 2016 Al ZohaliBSD3Al Zohali <zohl@fmap.me> experimentalNone!"%&,59:;<=DIQRT /Mapping from PostgreSQL types to Haskell types. RFunction that constructs binding for PostgreSQL stored function by it's signature.$,Example: "varchar" -> PostgresType "varchar"%KExample: "varchar" FromField a -> [PostgresType "varchar" ~ a, FromField a]&ÿ[Examples: (PGSingle "varchar") -> (["y"], [PostgresType "varchar" ~ y, FromField y], y) (PGSetOf "varchar") -> (["y"], [PostgresType "varchar" ~ y, FromField y], [y]) (PGTable ["bigint", "varchar"]) -> ( ["y", "z"] , [PostgresType "bigint" ~ y, FromField y, PostgresType "varchar" ~ z, FromField z] , (y, z))'ÐExample: [PGArgument "x" "varchar" True, PGArgument "y" "bigint" False] -> ( ["x1", "x2"] , [PostgresType "varchar" ~ x1, ToField x1, PostgresType "bigint" ~ x2, ToField x2] , [x1, Maybe x2])(ÿmExample: (PGFunction "public" "foo" [PGArgument "x" "varchar" True, PGArgument "y" "bigint" False] (PGSingle "varchar")) -> { foo :: forall x1 x2 x3. ( PostgresType "varchar" ~ x1, ToField x1 , PostgresType "bigint" ~ x2, ToField x2 , PostgresType "varchar" ~ x2, FromField x3) => Connection -> x1 -> Maybe x2 -> x3})ãExample: (PGFunction "public" "foo" [PGArgument "x" "varchar" True, PGArgument "y" "bigint" False] (PGSingle "varchar")) args -> { Query $ BS.pack $ concat ["select public.foo (", (formatArguments args), ")"] }*xExamples: (PGSingle _) q -> { unwrapRow q } (PGSetOf _) q -> { unwrapColumn q } (PGTable _) q -> { q }+ÿEExample: (PGFunction "public" "foo" [PGArgument "x" "varchar" True, PGArgument "y" "bigint" False] (PGSingle "varchar")) -> { foo conn x1 x2 = query conn (Query $ BS.pack $ concat ["select public.foo (", (formatArguments args), ")"]) (filterArguments [MandatoryArg "x1" x1, OptionalArg "x2" x2]),-. /012$%&'()*+3 ,-. /012$%&'()*+3(c) 2016 Al ZohaliBSD3Al Zohali <zohl@fmap.me> experimentalNone%&,59:;<=DIQRT(c) 2016 Al ZohaliBSD3Al Zohali <zohl@fmap.me> experimentalNone%&,59:;<=DIQRT!,Fetch function declaration(s) from database."Generate module with bindings.!"Database connection Full path to PostgresBindOptions record Module nameFunction names to match!"!"!"(c) 2016 Al ZohaliBSD3Al Zohali <zohl@fmap.me> experimentalNone     4         !"#$%&'()*+,-./01234567895postgresql-simple-bind-0.2.0.0-GAxjlNl9jLu3LTKwwDYKZp.Database.PostgreSQL.Simple.Bind.Representation&Database.PostgreSQL.Simple.Bind.Common%Database.PostgreSQL.Simple.Bind.TypesDatabase.PostgreSQL.Simple.Bind%Database.PostgreSQL.Simple.Bind.Utils.Database.PostgreSQL.Simple.Bind.ImplementationPGResultPGSinglePGSetOfPGTablePGColumn PGFunction PGArgumentPostgresBindException ParserFailedDefaultValueNotFoundparsePGFunction $fExceptionPostgresBindException$fEqPostgresBindException$fShowPostgresBindException$fShowPGArgument$fEqPGArgument$fShowPGColumn $fEqPGColumn$fShowPGResult $fEqPGResult$fShowPGFunction$fEqPGFunctionPostgresBindOptionspboFunctionName unwrapColumn unwrapRow$fDefaultPostgresBindOptions PostgresType bindFunctiongetFunctionDeclarationgenerateBindingsModule0postgresql-simple-0.5.2.1-1LIK3OIgTGS4W3k15a31yr Database.PostgreSQL.Simple.TypesOnly postgresT mkContextT mkResultTmkArgsT mkFunctionT mkSqlQueryunwrapE mkFunctionEArgument MandatoryArg OptionalArg mkFunctionformatArgumentformatArgumentsfilterArguments$fToFieldArgument