h$      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg h i j k l m n o p q r s t u v w x y z { | } ~                                                                                                                                                                                                                                                                                                                            "(c) 2012 Leon P SmithBSD3&Leon P Smith  experimental Safe-Inferred &!postgresql-simpleParse one of three primitive field formats: array, quoted and plain.#postgresql-simpleRecognizes a quoted string.$postgresql-simpleRecognizes a plain string literal, not containing quotes or brackets and not containing the delimiter character.%postgresql-simpleFormat an array format item, using the delimiter character if the item is itself an array.&postgresql-simpleFormat a list of array format items, inserting the appropriate delimiter between them. When the items are arrays, they will be delimited with commas; otherwise, they are delimited with the passed-in-delimiter.'postgresql-simpleFormat an array format item, using the delimiter character if the item is itself an array, optionally applying quoting rules. Creates copies for safety when used in  FromField instances.(postgresql-simpleEscape a string according to Postgres double-quoted string format.  !"#$%&'( ! "#$%&'(None &wpostgresql-simpleLike ., but backported to base before version 4.3.0.9Note that the restore callback is monomorphic, unlike in . This could be fixed by changing the type signature, but it would require us to enable the RankNTypes extension (since  has a rank-3 type). The withTransactionMode function calls the restore callback only once, so we don't need that polymorphism.(c) 2012-2015 Leon P SmithBSD3leon@melding-monads.com experimental Safe-Inferred &35,postgresql-simple;a way to reify a list of exceptions into a single exception6postgresql-simpleTwo / cases are considered equal, regardless of what the list of exceptions looks like.,-.0/.0/,-(c) 2012-2015 Leon P Smith (c) 2015 Bryan O'SullivanBSD3&Leon P Smith  experimentalNone &postgresql-simpleParse a date of the form  YYYY-MM-DD.postgresql-simpleParse a time of the form HH:MM[:SS[.SSS]].postgresql-simpleParse a time zone, and return  if the offset from UTC is zero. (This makes some speedups possible.)postgresql-simpleParse a time zone, and return  if the offset from UTC is zero. (This makes some speedups possible.)postgresql-simple#Parse a date and time, of the form YYYY-MM-DD HH:MM:SS$. The space may be replaced with a T. The number of seconds may be followed by a fractional component.postgresql-simple Behaves as 5, but converts any time zone offset into a UTC time.postgresql-simple5Parse a date with time zone info. Acceptable formats: YYYY-MM-DD HH:MM:SS Z!The first space may instead be a T*, and the second space is optional. The Z represents UTC. The Z6 may be replaced with a time zone offset of the form +0000 or -08:00-, where the first two digits are hours, the : is optional and the second two digits (also optional) are minutes. None &#(c) 2012-2015 Leon P SmithBSD3&Leon P Smith  experimentalNone &35.;<=>?@BACDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdef(c) 2012 Leon P SmithBSD3&Leon P Smith  experimentalNone & R ;NOPQRSTUVWXY NOPQRSVWXY;TU(c) 2012-2015 Leon P SmithBSD3&Leon P Smith  experimentalNone & <=>?@CABDEFGHIJKLMZ[\]^_`abcdef@CAB<>=?GDEFHLIJKMZ]^_[\dabc`ef (c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone &"(kpostgresql-simpleA structure representing some of the metadata regarding a PostgreSQL type, mostly taken from the pg_type table.ghjikolnmwvutsrqp (c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone &"kmnlopqrstuvwxyz{|}~kmnlopqrstuvwxyz{|}~(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone  &35? postgresql-simple Represents a VALUES0 table literal, usable as an alternative to ! and ". The main advantage is that you can parametrize more than just a single VALUES expression. For example, here's a query to insert a thing into one table and some attributes of that thing into another, returning the new id generated by the database: query c [sql| WITH new_thing AS ( INSERT INTO thing (name) VALUES (?) RETURNING id ), new_attributes AS ( INSERT INTO thing_attributes SELECT new_thing.id, attrs.* FROM new_thing JOIN ? attrs ON TRUE ) SELECT * FROM new_thing |] ("foo", Values [ "int4", "text" ] [ ( 1 , "hello" ) , ( 2 , "world" ) ])(Note this example uses writable common table expressions, which were added in PostgreSQL 9.1)The second parameter gets expanded into the following SQL syntax: 0(VALUES (1::"int4",'hello'::"text"),(2,'world'))When the list of attributes is empty, the second parameter expands to: ,(VALUES (null::"int4",null::"text") LIMIT 0) By contrast,  executeMany and  returning? don't issue the query in the empty case, and simply return 0 and [] respectively. This behavior is usually correct given their intended use cases, but would certainly be wrong in the example above.The first argument is a list of postgresql type names. Because this is turned into a properly quoted identifier, the type name is case sensitive and must be as it appears in the pg_type" table. Thus, you must write  timestamptz instead of timestamp with time zone, int4 instead of integer or serial, _int8 instead of bigint[], etcetera.You may omit the type names, however, if you do so the list of values must be non-empty, and postgresql must be able to infer the types of the columns from the surrounding context. If the first condition is not met, postgresql-simple will throw an exception without issuing the query. In the second case, the postgres server will return an error which will be turned into a SqlError exception.See  :https://www.postgresql.org/docs/9.5/static/sql-values.html for more information.postgresql-simpleA composite type to parse your custom data structures without having to define dummy newtype wrappers every time. !instance FromRow MyData where ... "instance FromRow MyData2 where ...%then I can do the following for free: res <- query' c "..." forM res $ \(MyData{..} :. MyData2{..}) -> do .... postgresql-simple*Wrap a list for use as a PostgreSQL array.postgresql-simpleWrap text for use as (maybe) qualified identifier, i.e. a table with schema, or column with table.postgresql-simpleWrap text for use as sql identifier, i.e. a table or column name.postgresql-simpleWrap binary data for use as a bytea value.postgresql-simple$Wrap a list of values for use in an IN clause. Replaces a single "?:" character with a parenthesized list of rendered values.Example: query c "select * from whatever where id in ?" (Only (In [3,4,5])) Note that In [] expands to (null), which works as expected in the query above, but evaluates to the logical null value on every row instead of TRUE0. This means that changing the query above to ... id NOT in ? and supplying the empty list as the parameter returns zero rows, instead of all of them as one would expect.Since postgresql doesn't seem to provide a syntax for actually specifying an empty list, which could solve this completely, there are two workarounds particularly worth mentioning, namely: Use postgresql-simple's  type instead, which can handle the empty case correctly. Note however that while specifying the postgresql type "int4" is mandatory in the empty case, specifying the haskell type Values (Only Int): would not normally be needed in realistic use cases. query c "select * from whatever where id not in ?" (Only (Values ["int4"] [] :: Values (Only Int))) Use sql's COALESCE operator to turn a logical null into the correct boolean. Note however that the correct boolean depends on the use case: query c "select * from whatever where coalesce(id NOT in ?, TRUE)" (Only (In [] :: In [Int])) query c "select * from whatever where coalesce(id IN ?, FALSE)" (Only (In [] :: In [Int]))Note that at as of PostgreSQL 9.4, the query planner cannot see inside the COALESCE' operator, so if you have an index on id= then you probably don't want to write the last example with COALESCE, which would result in a table scan. There are further caveats if id can be null or you want null treated sensibly as a component of IN or NOT IN.postgresql-simpleA query string. This type is intended to make it difficult to construct a SQL query by concatenating string fragments, as that is an extremely common way to accidentally introduce SQL injection vulnerabilities into an application.This type is an instance of <, so the easiest way to construct a query is to enable the OverloadedStrings language extension and then simply write the query in double quotes. {-# LANGUAGE OverloadedStrings #-} import Database.PostgreSQL.Simple q :: Query q = "select ?"The underlying type is a , and literal Haskell strings that contain Unicode characters will be correctly transformed to UTF-8.postgresql-simple!A placeholder for the PostgreSQL DEFAULT value.postgresql-simpleA placeholder for the SQL NULL value.postgresql-simple "foo.bar" will get turned into &QualifiedIdentifier (Just "foo") "bar" , while "foo" will get turned into !QualifiedIdentifier Nothing "foo". Note this instance is for convenience, and does not match postgres syntax. It only examines the first period character, and thus cannot be used if the qualifying identifier contains a period for example.33 (c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone &Apostgresql-simple$Returns an expression that has type  -> 1, true if the oid is equal to any one of the ps of the given ks.postgresql-simpleLiterally substitute the p of a k. expression. Returns an expression of type 5. Useful because GHC tends not to fold constants. (c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone  &.35>H postgresql-simple=A type that may be used as a single parameter to a SQL query.postgresql-simple;How to render an element when substituting it into a query.postgresql-simpleRender without escaping or quoting. Use for non-text types such as numbers, when you are certain that they will not introduce formatting vulnerabilities via use of characters such as spaces or "'".postgresql-simpleEscape and enclose in quotes before substituting. Use for all text-like types, and anything else that may contain unsafe characters when rendered.postgresql-simple Escape binary data for use as a bytea= literal. Include surrounding quotes. This is used by the  newtype wrapper.postgresql-simpleEscape before substituting. Use for all sql identifiers like table, column names, etc. This is used by the  newtype wrapper.postgresql-simple*Concatenate a series of rendering actions.postgresql-simple5Prepare a value for substitution into a query string.postgresql-simple"Convert a Haskell value to a JSON  using # and convert that to a field using .7This can be used as the default implementation for the  method for Haskell types that have a JSON representation in PostgreSQL.postgresql-simple1Surround a string with single-quote characters: "'"This function does not perform any other escaping.postgresql-simplecitextpostgresql-simplecitext   (c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone  &9>?Kpostgresql-simple?A collection type that can be turned into a list of rendering s.Instances should use the  method of the  class to perform conversion of each element of the collection.You can derive 2 for your data type using GHC generics, like this: {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} import  GHC.Generics ( ) import Database.PostgreSQL.Simple () data User = User { name :: String, fileQuota :: Int } deriving (, ) Note that this only works for product types (e.g. records) and does not support sum types or recursive types.(c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone &Rypostgresql-simple is a quasiquoter that eases the syntactic burden of writing big sql statements in Haskell source code. For example: {-# LANGUAGE QuasiQuotes #-} query conn [sql| SELECT column_a, column_b FROM table1 NATURAL JOIN table2 WHERE ? <= time AND time < ? AND name LIKE ? ORDER BY size DESC LIMIT 100 |] (beginTime,endTime,string)=This quasiquoter returns a literal string expression of type , and attempts to minimize whitespace; otherwise the above query would consist of approximately half whitespace when sent to the database backend. It also recognizes and strips out standard sql comments "--".The implementation of the whitespace reducer is currently incomplete. Thus it can mess up your syntax in cases where whitespace should be preserved as-is. It does preserve whitespace inside standard SQL string literals. But it can get confused by the non-standard PostgreSQL string literal syntax (which is the default setting in PostgreSQL 8 and below), the extended escape string syntax, quoted identifiers, and other similar constructs.Of course, this caveat only applies to text written inside the SQL quasiquoter; whitespace reduction is a compile-time computation and thus will not touch the string. parameter above, which is a run-time value.3Also note that this will not work if the substring |] is contained in the query.(c) 2011-2015 Leon P SmithBSD3&Leon P Smith  experimentalNone  #$&38h postgresql-simpleException thrown if a  could not be formatted correctly. This may occur if the number of '?' characters in the query string does not match the number of parameters provided.postgresql-simpleException thrown if query is used to perform an INSERT-like operation, or execute is used to perform a SELECT-like operation.postgresql-simple4A Field represents metadata about a particular fieldYou don't particularly want to retain these structures for a long period of time, as they will retain the entire query result, not just the field metadatapostgresql-simpleThis returns the type oid associated with the column. Analogous to libpq's PQftype.postgresql-simple0Default information for setting up a connection.Defaults are as follows: Server on  localhostPort on 5432User postgres No password Database postgres Use as in the following example: =connect defaultConnectInfo { connectHost = "db.example.com" }postgresql-simpleConnect with the given username to the given database. Will throw an exception if it cannot connect.postgresql-simpleAttempt to make a connection based on a libpq connection string. See  https://www.postgresql.org/docs/9.5/static/libpq-connect.html#LIBPQ-CONNSTRING for more information. Also note that environment variables also affect parameters not provided, parameters provided as the empty string, and a few other things; see  for more information regarding the authentication process.SSL/TLS will typically "just work" if your postgresql server supports or requires it. However, note that libpq is trivially vulnerable to a MITM attack without setting additional SSL connection parameters. In particular, sslmode needs to be set to require,  verify-ca, or  verify-full3 in order to perform certificate validation. When sslmode is require(, then you will also need to specify a  sslrootcert file, otherwise no validation of the server's identity will be performed. Client authentication via certificates is also possible via the sslcert and sslkey parameters. See  9https://www.postgresql.org/docs/9.5/static/libpq-ssl.html5 for detailed information regarding libpq and SSL.postgresql-simpleTurns a / data structure into a libpq connection string.postgresql-simple A version of execute* that does not perform query substitution.postgresql-simpleAtomically perform an action with the database handle, if there is one.postgresql-simpleQuote bytestring or throw postgresql-simpleConnection for string escapingpostgresql-simpleQuery for message errorpostgresql-simple$List of parameters for message errorpostgresql-simpleAction to build>(c) 2011-2015 Leon P Smith (c) 2012 Joey AdamsBSD3leon@melding-monads.com experimentalNone  #$%&mpostgresql-simpleReturns a single notification. If no notifications are available,  blocks until one arrives.It is safe to call  on a connection that is concurrently being used for other purposes, note however that PostgreSQL does not deliver notifications while a connection is inside a transaction.postgresql-simpleNon-blocking variant of . Returns a single notification, if available. If no notifications are available, returns .postgresql-simpleReturns the process 9 of the backend server process handling this connection.The backend PID is useful for debugging purposes and for comparison to NOTIFY messages (which include the PID of the notifying backend process). Note that the PID belongs to a process executing on the database server host, not the local host!(c) 2011-2012 Leon P SmithBSD3leon@melding-monads.comNone &nA  ((c) 2012-2013 Leonid Onokhov, Joey AdamsBSD3&Leon P Smith  experimentalNone #$&3spostgresql-simpleThe field is a column namepostgresql-simple*Table name and name of violated constraintpostgresql-simpleName of violated constraintpostgresql-simple.Relation name (usually table), constraint namepostgresql-simple*Name of the exclusion violation constraintpostgresql-simpleTries to convert  to ConstrainViolation, checks sqlState and succeedes only if able to parse sqlErrorMsg. createUser = handleJust constraintViolation handler $ execute conn ... where handler (UniqueViolation "user_login_key") = ... handler _ = ...postgresql-simple;Like constraintViolation, but also packs original SqlError. createUser = handleJust constraintViolationE handler $ execute conn ... where handler (_, UniqueViolation "user_login_key") = ... handler (e, _) = throwIO epostgresql-simpleCatches SqlError, tries to convert to ConstraintViolation, re-throws on fail. Provides alternative interface to  createUser = catchViolation catcher $ execute conn ... where catcher _ (UniqueViolation "user_login_key") = ... catcher e _ = throwIO e  <(c) 2011-2013 Leon P Smith (c) 2013 Joey AdamsBSD3&Leon P Smith None  #$&postgresql-simplethe read-write mode will be taken from PostgreSQL's per-connection default_transaction_read_only variable, which is initialized according to the server's config. The default configuration is .postgresql-simpleOf the four isolation levels defined by the SQL standard, these are the three levels distinguished by PostgreSQL as of version 9.0. See  ?https://www.postgresql.org/docs/9.5/static/transaction-iso.html= for more information. Note that prior to PostgreSQL 9.0,  was equivalent to .postgresql-simplethe isolation level will be taken from PostgreSQL's per-connection default_transaction_isolation variable, which is initialized according to the server's config. The default configuration is .postgresql-simple+Execute an action inside a SQL transaction..This function initiates a transaction with a "begin transaction" statement, then executes the supplied action. If the action succeeds, the transaction will be completed with #$ before this function returns.If the action throws any kind of exception (not just a PostgreSQL-related exception), the transaction will be rolled back using &, then the exception will be rethrown.For nesting transactions, see .postgresql-simpleExecute an action inside of a  transaction. If a serialization failure occurs, roll back the transaction and try again. Be warned that this may execute the IO action multiple times.A  transaction creates the illusion that your program has exclusive access to the database. This means that, even in a concurrent setting, you can perform queries in sequence without having to worry about what might happen between one statement and the next. Think of it as STM, but without retry.postgresql-simpleExecute an action inside a SQL transaction with a given isolation level.postgresql-simpleExecute an action inside a SQL transaction with a given transaction mode.postgresql-simple' but with the exception type pinned to .postgresql-simpleLike , but also takes a custom callback to determine if a transaction should be retried if an exception occurs. If the callback returns , then the transaction will be retried. If the callback returns  , or an exception other than an e occurs then the transaction will be rolled back and the exception rethrown.This is used to implement .postgresql-simpleRollback a transaction.postgresql-simpleCommit a transaction.postgresql-simpleBegin a transaction.postgresql-simple0Begin a transaction with a given isolation levelpostgresql-simple1Begin a transaction with a given transaction modepostgresql-simpleCreate a savepoint, and roll back to it if an error occurs. This may only be used inside of a transaction, and provides a sort of "nested transaction".See =https://www.postgresql.org/docs/9.5/static/sql-savepoint.htmlpostgresql-simpleCreate a new savepoint. This may only be used inside of a transaction.postgresql-simple,Destroy a savepoint, but retain its effects.Warning: this will throw a  matching 2 if the transaction is aborted due to an error. " would merely warn and roll back.postgresql-simple?Roll back to a savepoint. This will not release the savepoint.postgresql-simpleRoll back to a savepoint and release it. This is like calling  followed by 2, but avoids a round trip to the database server.$$ (c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone #$&Opostgresql-simpleReturns the metadata of the type with a particular oid. To find this data, 0 first consults postgresql-simple's built-in x table, then checks the connection's typeinfo cache. Finally, the database's pg_type table will be queried only if necessary, and the result will be stored in the connections's cache.ghijkmnlopqrstuvwkmnlopqrstuvwghij?(c) 2011 MailRank, Inc. (c) 2011-2013 Leon P SmithBSD3&Leon P Smith  experimentalNone #$&.35>8postgresql-simple-A type that may be converted from a SQL type.postgresql-simple'Convert a SQL value to a Haskell value.Returns a list of exceptions if the conversion fails. In the case of library instances, this will usually be a single , but may be a UnicodeException.)Note that retaining any reference to the  argument causes the entire LibPQ., to be retained. Thus, implementations of  should return results that do not refer to this value after the result have been evaluated to WHNF.Note that as of postgresql-simple-0.4.0.0, the + value has already been copied out of the LibPQ. before it has been passed to . This is because for short strings, it's cheaper to copy the string than to set up a finalizer.postgresql-simpleException thrown if conversion from a SQL value to a Haskell value fails.postgresql-simple-The SQL and Haskell types are not compatible.postgresql-simpleA SQL NULL: was encountered when the Haskell type did not permit it.postgresql-simpleThe SQL value could not be parsed, or could not be represented as a valid Haskell value, or an unexpected low-level error occurred (e.g. mismatch between metadata and actual data in a row).postgresql-simpleReturns the data type name. This is the preferred way of identifying types that do not have a stable type oid, such as types provided by extensions to PostgreSQL.!More concretely, it returns the typname/ column associated with the type oid in the pg_type table. First, postgresql-simple will check the built-in, static table. If the type oid is not there, postgresql-simple will check a per-connection cache, and then finally query the database's meta-schema.postgresql-simpleReturns the name of the column. This is often determined by a table definition, but it can be set using an as clause.postgresql-simple)Returns the name of the object id of the table2 associated with the column, if any. Returns  when there is no such table; for example a computed column does not have a table associated with it. Analogous to libpq's PQftable.postgresql-simpleIf the column has a table associated with it, this returns the number of the associated table column. Table columns have nonzero numbers. Zero is returned if the specified column is not a simple reference to a table column, or when using pre-3.0 protocol. Analogous to libpq's  PQftablecol.postgresql-simpleThis returns whether the data was returned in a binary or textual format. Analogous to libpq's  PQfformat.postgresql-simpleFor dealing with SQL null values outside of the ( class. Alternatively, one could use %&:, but that also turns type and conversion errors into 3, whereas this is more specific and turns only null values into .postgresql-simple#Return the JSON ByteString directlypostgresql-simpleParse a field to a JSON 2 and convert that into a Haskell value using the  instance.7This can be used as the default implementation for the  method for Haskell types that have a JSON representation in PostgreSQL.The  constraint is required to show more informative error messages when parsing fails. Note that fromJSONField :: FieldParser ( Foo) will return  on the json null' value, and return an exception on SQL null* value. Alternatively, one could write  fromJSONField that will return Nothing on SQL null, and otherwise will call  fromJSONField :: FieldParser Foo and then return  the result value, or return its exception. If one would like to return Nothing on both the SQL null and json null. values, one way to do it would be to write  \f mv -> '( ! optionalField fromJSONField f mvpostgresql-simple#Given one of the constructors from , the field, and an , this fills in the other fields in the exception value and returns it in a 'Left . SomeException' constructor.postgresql-simple7Construct a field parser from an attoparsec parser. An  error is thrown if the PostgreSQL oid does not match the specified predicate. instance FromField Int16 where fromField = attoFieldParser ok16 (signed decimal) postgresql-simple)Compatible with the same set of types as a. Note that modifying the  does not have any effects outside the local process on the local machine.postgresql-simple)Compatible with the same set of types as a. Note that modifying the  does not have any effects outside the local process on the local machine.postgresql-simple json, jsonbpostgresql-simpleuuidpostgresql-simple=any postgresql array whose elements are compatible with type apostgresql-simple1Compatible with both types. Conversions to type b+ are preferred, the conversion to type a will be tried after the  conversion fails.postgresql-simple5interval. Requires you to configure intervalstyle as iso_8601.;You can configure intervalstyle on every connection with a SET command, but for better performance you may want to configure it permanently in the file found with SHOW config_file; .postgresql-simpledatepostgresql-simple timestamppostgresql-simple timestamptzpostgresql-simple timestamptzpostgresql-simpletimepostgresql-simpledatepostgresql-simple timestamppostgresql-simple timestamptzpostgresql-simple timestamptzpostgresql-simple#name, text, "char", bpchar, varcharpostgresql-simplecitextpostgresql-simplecitextpostgresql-simple#name, text, "char", bpchar, varcharpostgresql-simple#name, text, "char", bpchar, varcharpostgresql-simplebyteapostgresql-simplebyteapostgresql-simple3bytea, name, text, "char", bpchar, varchar, unknownpostgresql-simpleoidpostgresql-simple3bytea, name, text, "char", bpchar, varchar, unknownpostgresql-simple)int2, int4, int8, float4, float8, numericpostgresql-simple)int2, int4, int8, float4, float8, numericpostgresql-simple/int2, int4, float4, float8 (Uses attoparsec's - routine, for better accuracy convert to  or  first)postgresql-simple#int2, float4 (Uses attoparsec's - routine, for better accuracy convert to  or  first)postgresql-simpleint2, int4, int8postgresql-simpleint2, int4, int8postgresql-simpleint2, int4, and if compiled as 64-bit code, int8 as well. This library was compiled as 64-bit code.postgresql-simple int2, int4postgresql-simpleint2postgresql-simple"char", bpcharpostgresql-simpleboolpostgresql-simple:compatible with any data type, but the value must be nullpostgresql-simpleFor dealing with null values. Compatible with any postgresql type compatible with type a. Note that the type is not checked if the value is null, although it is inadvisable to rely on this behavior.postgresql-simplevoidpostgresql-simplePredicate for whether the postgresql type oid is compatible with this parserpostgresql-simpleAn attoparsec parser.5 ghijkmnlopqrstuvw5kmnlopqrstuvwghij 2(c) 2014-2015 Leonid Onokhov (c) 2014-2015 Leon P SmithBSD3&Leon P Smith None  &35>postgresql-simpleGeneric range typepostgresql-simpleRepresents boundary of a rangepostgresql-simple$Is a range empty? If this returns  , then the ! predicate will always return !. However, if this returns , it is not necessarily true that there exists a point for which  returns . Consider  (Excludes 2) (Excludes 3) :: PGRange Int, for example.postgresql-simpleDoes a range contain a given point? Note that in some cases, this may not correspond exactly with a server-side computation. Consider UTCTime for example, which has a resolution of a picosecond, whereas postgresql's  timestamptz types have a resolution of a microsecond. Putting such Haskell values into the database will result in them being rounded, which can change the value of the containment predicate.  None &35zpostgresql-simpleA newtype wrapper with  and  instances based on  and  type classes from aeson.Example using  DerivingVia: data Foo = Foo Int String deriving stock (Eq, Show, Generic) -- GHC built int deriving anyclass (, 5) -- Derived using GHC Generics deriving (, ) via  Foo -- DerivingVia Example using * newtype directly, for more ad-hoc queries 7execute conn "INSERT INTO tbl (fld) VALUES (?)" (Only ( x)) )(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone &&*(c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone &3postgresql-simpleRepresents escape text, ready to be the key or value to a hstore valuepostgresql-simpleRepresents valid hstore syntax.postgresql-simpleAssumed to be UTF-8 encodedpostgresql-simpleAssumed to be UTF-8 encodedpostgresql-simplehstorepostgresql-simplehstore(c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone &(c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone &(c) 2012 Leon P SmithBSD3&Leon P Smith  experimentalNone  #$&9>?postgresql-simpleA collection type that can be converted from a sequence of fields. Instances are provided for tuples up to 10 elements and lists of any length.Note that instances can be defined outside of postgresql-simple, which is often useful. For example, here's an instance for a user-defined pair: data User = User { name :: String, fileQuota :: Int } instance # User where fromRow = User <$>  <*>  The number of calls to  must match the number of fields returned in a single row of the query result. Otherwise, a  exception will be thrown.You can also derive 3 for your data type using GHC generics, like this: {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} import  GHC.Generics ( ) import Database.PostgreSQL.Simple () data User = User { name :: String, fileQuota :: Int } deriving (, ) Note that this only works for product types (e.g. records) and does not support sum types or recursive types. Note that  evaluates its result to WHNF, so the caveats listed in mysql-simple and very early versions of postgresql-simple no longer apply. Instead, look at the caveats associated with user-defined implementations of .(c) 2011-2012 Leon P Smith (c) 2017 Bardur ArantssonBSD3&Leon P Smith None &Wpostgresql-simpleCursor within a transaction.postgresql-simpleDeclare a temporary cursor. The cursor is given a unique name for the given connection.postgresql-simpleClose the given cursor.postgresql-simpleFold over a chunk of rows from the given cursor, calling the supplied fold-like function on each row as it is received. In case the cursor is exhausted, a ! value is returned, otherwise a  value is returned.postgresql-simpleFold over a chunk of rows, calling the supplied fold-like function on each row as it is received. In case the cursor is exhausted, a  value is returned, otherwise a  value is returned.(c) 2011 MailRank, Inc. (c) 2011-2012 Leon P SmithBSD3&Leon P Smith  experimentalNone  #$%&3Spostgresql-simpleExecute a multi-row INSERT, UPDATE=, or other SQL query that is not expected to return results.Returns the number of rows affected. If the list of parameters is empty, this function will simply return 0 without issuing the query to the backend. If this is not desired, consider using the Values constructor instead.Throws 6 if the query could not be formatted correctly, or a + exception if the backend returns an error.For example, here's a command that inserts two rows into a table with two columns: executeMany c [sql| INSERT INTO sometable VALUES (?,?) |] [(1, "hello"),(2, "world")] :Here's an canonical example of a multi-row update command: executeMany c [sql| UPDATE sometable SET y = upd.y FROM (VALUES (?,?)) as upd(x,y) WHERE sometable.x = upd.x |] [(1, "hello"),(2, "world")] postgresql-simple Execute an INSERT, UPDATE=, or other SQL query that is not expected to return results.$Returns the number of rows affected.Throws 6 if the query could not be formatted correctly, or a + exception if the backend returns an error.postgresql-simple A version of * that does not perform query substitution.postgresql-simple Perform a SELECT or other SQL query that is expected to return results. All results are retrieved and converted before this function returns.When processing large results, this function will consume a lot of client-side memory. Consider using  instead.Exceptions that may be thrown:4: the query string could not be formatted correctly.>: the result contains no columns (i.e. you should be using  instead of ).: result conversion failed.: the postgresql backend returned an error, e.g. a syntax or type error, or an incorrect table or column name.postgresql-simple%Number of rows to fetch at a time.  currently defaults to 256 rows, although it might be nice to make this more intelligent based on e.g. the average size of the rows.postgresql-simpleFormat a query string.This function is exposed to help with debugging and logging. Do not use it to prepare queries for execution.String parameters are escaped according to the character set in use on the .Throws 7 if the query string could not be formatted correctly.postgresql-simple5Format a query string with a variable number of rows.This function is exposed to help with debugging and logging. Do not use it to prepare queries for execution.The query string must contain exactly one substitution group, identified by the SQL keyword "VALUES&" (case insensitive) followed by an "(&" character, a series of one or more "?*" characters separated by commas, and a ")?" character. White space in a substitution group is permitted.Throws 7 if the query string could not be formatted correctly.postgresql-simpleExecute INSERT ... RETURNING, UPDATE ... RETURNING, or other SQL query that accepts multi-row input and is expected to return results. Note that it is possible to write $ conn "INSERT ... RETURNING ..." ... in cases where you are only inserting a single row, and do not need functionality analogous to .If the list of parameters is empty, this function will simply return [] without issuing the query to the backend. If this is not desired, consider using the Values constructor instead.Throws / if the query could not be formatted correctly.postgresql-simple A version of  taking parser as argumentpostgresql-simple A version of  taking parser as argumentpostgresql-simple A version of  taking parser as argumentpostgresql-simple Perform a SELECT or other SQL query that is expected to return results. Results are streamed incrementally from the server, and consumed via a left fold.When dealing with small results, it may be simpler (and perhaps faster) to use  instead. This fold is not strict. The stream consumer is responsible for forcing the evaluation of its result to avoid space leaks.This is implemented using a database cursor. As such, this requires a transaction. This function will detect whether or not there is a transaction in progress, and will create a   transaction if needed. The cursor is given a unique temporary name, so the consumer may itself call fold.Exceptions that may be thrown:4: the query string could not be formatted correctly.>: the result contains no columns (i.e. you should be using  instead of ).: result conversion failed.: the postgresql backend returned an error, e.g. a syntax or type error, or an incorrect table or column name.postgresql-simple A version of  taking a parser as an argumentpostgresql-simple defaults to , and   postgresql-simple The same as , but this provides a bit more control over lower-level details. Currently, the number of rows fetched per round-trip to the server and the transaction mode may be adjusted accordingly. If the connection is already in a transaction, then the existing transaction is used and thus the  option is ignored.postgresql-simple A version of  taking a parser as an argumentpostgresql-simple A version of * that does not perform query substitution.postgresql-simple A version of  taking a parser as an argumentpostgresql-simple A version of  taking a parser as an argumentpostgresql-simple A version of ' that does not transform a state value.postgresql-simple A version of  taking a parser as an argumentpostgresql-simple A version of * that does not perform query substitution.postgresql-simpleQuery.postgresql-simple"Initial state for result consumer.postgresql-simpleResult consumer.postgresql-simpleQuery.postgresql-simple"Initial state for result consumer.postgresql-simpleResult consumer.postgresql-simpleQuery.postgresql-simple"Initial state for result consumer.postgresql-simpleResult consumer.postgresql-simpleQuery template.postgresql-simpleQuery parameters.postgresql-simpleResult consumer.postgresql-simpleQuery template.postgresql-simpleResult consumer.(c) 2013 Leon P SmithBSD3&Leon P Smith  experimentalNone &3& postgresql-simpleData representing either exactly one row of the result, or header or footer data depending on format.postgresql-simple return (row:acc)) (\acc count -> return (acc, count)) []postgresql-simpleRetrieve some data from a COPY TO STDOUT) query. A connection must be in the CopyOut= state in order to call this function. If this returns a  , the connection remains in the CopyOut state, if it returns 9, then the connection has reverted to the ready state.postgresql-simpleFeed some data to a COPY FROM STDIN query. Note that the data does not need to represent a single row, or even an integral number of rows. The net result of (putCopyData conn a >> putCopyData conn b is the same as putCopyData conn c whenever c == BS.append a b.A connection must be in the CopyIn7 state in order to call this function, otherwise a : exception will result. The connection remains in the CopyIn( state after this function is called.postgresql-simple Completes a COPY FROM STDIN1 query. Returns the number of rows processed.A connection must be in the CopyIn7 state in order to call this function, otherwise a  exception will result. The connection's state changes back to ready after this function is called.postgresql-simple Aborts a COPY FROM STDIN query. The string parameter is simply an arbitrary error message that may show up in the PostgreSQL server's log.A connection must be in the CopyIn7 state in order to call this function, otherwise a  exception will result. The connection's state changes back to ready after this function is called.postgresql-simpleDatabase connectionpostgresql-simple Accumulate one row of the resultpostgresql-simple-Post-process accumulator with a count of rowspostgresql-simpleInitial accumulatorpostgresql-simpleResult  None &postgresql-simple Perform a SELECT or other SQL query that is expected to return results. All results are retrieved and converted before this function returns.postgresql-simple A version of * that does not perform query substitution.postgresql-simple A version of  taking parser as argumentpostgresql-simple A version of  taking parser as argumentpostgresql-simpleExecute INSERT ... RETURNING, UPDATE ... RETURNING, or other SQL query that accepts multi-row input and is expected to return results.postgresql-simple A version of  taking parser as argumentNone &postgresql-simple Perform a SELECT or other SQL query that is expected to return results. All results are retrieved and converted before this function returns.postgresql-simple A version of * that does not perform query substitution.postgresql-simple A version of  taking parser as argumentpostgresql-simple A version of  taking parser as argumentpostgresql-simpleExecute INSERT ... RETURNING, UPDATE ... RETURNING, or other SQL query that accepts multi-row input and is expected to return results.postgresql-simple A version of  taking parser as argument+,-+,.+,./01/02/03/04/56/57/58/59/5:;<=;<>;<?;<@;<@;<A;<B;<C;<D;<E;<F;<G;<H;<I;<J;<K;<LMNOPQRSTUVWXYZ[\\]^]_`abcdefghijklmnopqrstuvwxyz{|}~       N                                                                                                                                                                                                                                               ==     O                                                                                       6$! oq**********************"""////////;<////////))))*******/.postgresql-simple-0.6.4-Cpk7WpiAvv5HpU5AEDLpRN Database.PostgreSQL.Simple.Types'Database.PostgreSQL.Simple.LargeObjects$Database.PostgreSQL.Simple.FromFieldDatabase.PostgreSQL.Simple!Database.PostgreSQL.Simple.ArraysDatabase.PostgreSQL.Simple.Ok(Database.PostgreSQL.Simple.Time.InternalDatabase.PostgreSQL.Simple.Time#Database.PostgreSQL.Simple.TypeInfo*Database.PostgreSQL.Simple.TypeInfo.Static)Database.PostgreSQL.Simple.TypeInfo.Macro"Database.PostgreSQL.Simple.ToField Database.PostgreSQL.Simple.ToRow Database.PostgreSQL.Simple.SqlQQ#Database.PostgreSQL.Simple.Internal'Database.PostgreSQL.Simple.Notification!Database.PostgreSQL.Simple.Errors&Database.PostgreSQL.Simple.Transaction"Database.PostgreSQL.Simple.FromRow Database.PostgreSQL.Simple.Range#Database.PostgreSQL.Simple.Newtypes!Database.PostgreSQL.Simple.HStore*Database.PostgreSQL.Simple.HStore.Internal!Database.PostgreSQL.Simple.CursorDatabase.PostgreSQL.Simple.Copy!Database.PostgreSQL.Simple.Vector)Database.PostgreSQL.Simple.Vector.Unboxed!Database.PostgreSQL.Simple.Compat/Database.PostgreSQL.Simple.Time.Internal.Parser0Database.PostgreSQL.Simple.Time.Internal.Printer.Database.PostgreSQL.Simple.Time.Implementation)Database.PostgreSQL.Simple.TypeInfo.Types executeMany returningBasecommitControl.Applicativeoptional Control.Monadjoin1Database.PostgreSQL.Simple.Internal.PQResultUtils0Database.PostgreSQL.Simple.HStore.ImplementationOnly-0.1-Hmiu2AVa9qJ6EI7MrgJvvlData.Tuple.OnlyfromOnlyOnlybase GHC.IO.Device SeekFromEnd RelativeSeek AbsoluteSeekSeekMode GHC.IO.IOMode ReadWriteMode AppendMode WriteModeReadModeIOMode/postgresql-libpq-0.9.4.3-7GMLDUbXM30H6jI5ad7aT4Database.PostgreSQL.LibPQBinaryTextFormatOid SingleTuple FatalError NonfatalError BadResponseCopyBothCopyInCopyOutTuplesOk CommandOk EmptyQuery ExecStatusLoFd ArrayFormatArrayPlainQuoted arrayFormatarrayquotedplainfmtdelimitfmt'esc$fEqArrayFormat$fShowArrayFormat$fOrdArrayFormat ManyErrorsOkErrors $fMonadFailOk $fMonadOk $fMonadPlusOk$fAlternativeOk$fApplicativeOk$fEqOk$fExceptionManyErrors$fShowManyErrors$fShowOk $fFunctorOk TimeZoneHMSDateZonedTimestamp UTCTimestampLocalTimestamp Unbounded NegInfinityFinite PosInfinity parseUTCTimeparseZonedTimeparseLocalTimeparseDayparseTimeOfDayparseUTCTimestampparseZonedTimestampparseLocalTimestamp parseDateparseCalendarDiffTimegetDaygetDate getTimeOfDay getLocalTimegetLocalTimestamp getTimeZonegetTimeZoneHMSlocalToUTCTimeOfDayHMS getZonedTimegetZonedTimestamp getUTCTimegetUTCTimestamp dayToBuildertimeOfDayToBuildertimeZoneToBuilderutcTimeToBuilderzonedTimeToBuilderlocalTimeToBuilderunboundedToBuilderutcTimestampToBuilderzonedTimestampToBuilderlocalTimestampToBuilder dateToBuildernominalDiffTimeToBuildercalendarDiffTimeToBuilder AttributeattnameatttypeTypeInfoBasicRange Compositetypoid typcategorytypdelimtypnametypelem rngsubtypetyprelid attributesstaticTypeInfoboolboolOidbyteabyteaOidcharcharOidnamenameOidint8int8Oidint2int2Oidint4int4Oidregproc regprocOidtexttextOidoidoidOidtidtidOidxidxidOidcidcidOidxmlxmlOidpointpointOidlseglsegOidpathpathOidboxboxOidpolygon polygonOidlinelineOidcidrcidrOidfloat4 float4Oidfloat8 float8Oidunknown unknownOidcircle circleOidmoneymoneyOidmacaddr macaddrOidinetinetOidbpchar bpcharOidvarchar varcharOiddatedateOidtimetimeOid timestamp timestampOid timestamptztimestamptzOidinterval intervalOidtimetz timetzOidbitbitOidvarbit varbitOidnumeric numericOid refcursor refcursorOidrecord recordOidvoidvoidOid array_recordarray_recordOid regprocedureregprocedureOidregoper regoperOid regoperatorregoperatorOidregclass regclassOidregtype regtypeOiduuiduuidOidjsonjsonOidjsonbjsonbOid int2vector int2vectorOid oidvector oidvectorOid array_xml array_xmlOid array_json array_jsonOid array_line array_lineOid array_cidr array_cidrOid array_circlearray_circleOid array_moneyarray_moneyOid array_bool array_boolOid array_byteaarray_byteaOid array_char array_charOid array_name array_nameOid array_int2 array_int2Oidarray_int2vectorarray_int2vectorOid array_int4 array_int4Oid array_regprocarray_regprocOid array_text array_textOid array_tid array_tidOid array_xid array_xidOid array_cid array_cidOidarray_oidvectorarray_oidvectorOid array_bpchararray_bpcharOid array_varchararray_varcharOid array_int8 array_int8Oid array_pointarray_pointOid array_lseg array_lsegOid array_path array_pathOid array_box array_boxOid array_float4array_float4Oid array_float8array_float8Oid array_polygonarray_polygonOid array_oid array_oidOid array_macaddrarray_macaddrOid array_inet array_inetOidarray_timestamparray_timestampOid array_date array_dateOid array_time array_timeOidarray_timestamptzarray_timestamptzOidarray_intervalarray_intervalOid array_numericarray_numericOid array_timetzarray_timetzOid array_bit array_bitOid array_varbitarray_varbitOidarray_refcursorarray_refcursorOidarray_regprocedurearray_regprocedureOid array_regoperarray_regoperOidarray_regoperatorarray_regoperatorOidarray_regclassarray_regclassOid array_regtypearray_regtypeOid array_uuid array_uuidOid array_jsonbarray_jsonbOid int4range int4rangeOid _int4range _int4rangeOidnumrange numrangeOid _numrange _numrangeOidtsrange tsrangeOid_tsrange _tsrangeOid tstzrange tstzrangeOid _tstzrange _tstzrangeOid daterange daterangeOid _daterange _daterangeOid int8range int8rangeOid _int8range _int8rangeOidValues Savepoint:.PGArray fromPGArrayQualifiedIdentifier IdentifierfromIdentifier fromBinaryInQuery fromQueryDefaultNull$fEqNull $fMonoidQuery$fSemigroupQuery$fIsStringQuery $fReadQuery $fShowQuery$fHashableIdentifier$fIsStringQualifiedIdentifier$fHashableQualifiedIdentifier $fEqValues $fOrdValues $fShowValues $fReadValues $fEqSavepoint$fOrdSavepoint$fShowSavepoint$fReadSavepoint$fEq:.$fOrd:.$fShow:.$fRead:. $fEqPGArray $fOrdPGArray $fReadPGArray $fShowPGArray$fFunctorPGArray$fEqQualifiedIdentifier$fOrdQualifiedIdentifier$fReadQualifiedIdentifier$fShowQualifiedIdentifier$fEqIdentifier$fOrdIdentifier$fReadIdentifier$fShowIdentifier$fIsStringIdentifier $fEqBinary $fOrdBinary $fReadBinary $fShowBinary$fFunctorBinary$fEqIn$fOrdIn$fReadIn$fShowIn $fFunctorIn $fEqQuery $fOrdQuery $fReadDefault $fShowDefault $fReadNull $fShowNull mkCompats inlineTypoidToFieldActionEscape EscapeByteAEscapeIdentifierManyToRowtoRowtoField toJSONFieldinQuotes $fShowAction$fToFieldValues$fToFieldValue $fToFieldUUID$fToFieldVector$fToFieldPGArray$fToFieldCalendarDiffTime$fToFieldNominalDiffTime$fToFieldUnbounded$fToFieldUnbounded0$fToFieldUnbounded1$fToFieldUnbounded2$fToFieldTimeOfDay $fToFieldDay$fToFieldLocalTime$fToFieldZonedTime$fToFieldUTCTime $fToFieldCI $fToFieldCI0 $fToFieldText $fToField[]$fToFieldText0$fToFieldByteString$fToFieldByteString0$fToFieldQualifiedIdentifier$fToFieldIdentifier$fToFieldBinary$fToFieldBinary0$fToFieldScientific$fToFieldDouble$fToFieldFloat $fToFieldOid$fToFieldWord64 $fToFieldWord$fToFieldWord32$fToFieldWord16$fToFieldWord8$fToFieldInteger$fToFieldInt64 $fToFieldInt$fToFieldInt32$fToFieldInt16 $fToFieldInt8 $fToFieldBool$fToFieldDefault $fToFieldNull $fToFieldIn$fToFieldMaybe$fToFieldIdentity$fToFieldConst$fToFieldAction $fGToRowU1 $fGToRowK1 $fGToRow:*: $fGToRowM1 $fToRow:. $fToRow[]$fToRow(,,,,,,,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,,)$fToRow(,,,,,,,,,,,)$fToRow(,,,,,,,,,,)$fToRow(,,,,,,,,,)$fToRow(,,,,,,,,)$fToRow(,,,,,,,)$fToRow(,,,,,,)$fToRow(,,,,,) $fToRow(,,,,) $fToRow(,,,) $fToRow(,,) $fToRow(,) $fToRowOnly $fToRow()sql Conversion runConversion RowParserRPunRPRowrow rowresult ConnectInfo connectHost connectPort connectUserconnectPasswordconnectDatabase FormatError fmtMessagefmtQuery fmtParams QueryError qeMessageqeQuerySqlErrorsqlState sqlExecStatus sqlErrorMsgsqlErrorDetail sqlErrorHint ConnectionconnectionHandleconnectionObjectsconnectionTempNameCounter TypeInfoCacheFieldresultcolumntypeOid fatalErrordefaultConnectInfoconnectconnectPostgreSQL connectdbpostgreSQLConnectionStringoid2intexecexecute_ finishExecutethrowResultErrordisconnectedErrorwithConnectionclosenewNullConnection liftRowParserliftConversion conversionMapconversionError newTempNamefdError libPQErrorthrowLibPQErrorfmtError fmtErrorBsquote buildAction checkError escapeWrapescapeStringConnescapeIdentifierescapeByteaConnbreakOnSingleQuestionMark$fEqConnection$fExceptionSqlError$fExceptionQueryError$fExceptionFormatError$fMonadPlusConversion$fMonadConversion$fAlternativeConversion$fApplicativeConversion$fFunctorConversion$fFunctorRowParser$fApplicativeRowParser$fAlternativeRowParser$fMonadRowParser$fGenericConnectInfo$fEqConnectInfo$fReadConnectInfo$fShowConnectInfo$fEqFormatError$fShowFormatError$fEqQueryError$fShowQueryError $fEqSqlError$fShowSqlError NotificationnotificationPidnotificationChannelnotificationDatagetNotificationgetNotificationNonBlocking getBackendPID$fShowNotification$fEqNotificationloCreatloCreateloImportloImportWithOidloExportloOpenloWriteloReadloSeekloTell loTruncateloCloseloUnlinkConstraintViolationNotNullViolationForeignKeyViolationUniqueViolationCheckViolationExclusionViolationconstraintViolationconstraintViolationEcatchViolationisSerializationErrorisNoActiveTransactionErrorisFailedTransactionError$fExceptionConstraintViolation$fShowConstraintViolation$fEqConstraintViolation$fOrdConstraintViolationTransactionModeisolationLevel readWriteModeDefaultReadWriteMode ReadWriteReadOnlyIsolationLevelDefaultIsolationLevel ReadCommittedRepeatableRead SerializabledefaultTransactionModedefaultIsolationLeveldefaultReadWriteModewithTransactionwithTransactionSerializablewithTransactionLevelwithTransactionModewithTransactionModeRetrywithTransactionModeRetry'rollbackbegin beginLevel beginMode withSavepoint newSavepointreleaseSavepointrollbackToSavepointrollbackToAndReleaseSavepoint$fShowTransactionMode$fEqTransactionMode$fShowReadWriteMode$fEqReadWriteMode$fOrdReadWriteMode$fEnumReadWriteMode$fBoundedReadWriteMode$fShowIsolationLevel$fEqIsolationLevel$fOrdIsolationLevel$fEnumIsolationLevel$fBoundedIsolationLevel FromFieldFromRowexecutequery_query getTypeInfo fromField FieldParser ResultError IncompatibleUnexpectedNullConversionFailed errSQLTypeerrSQLTableOid errSQLFielderrHaskellType errMessagetypenametypeInfo typeInfoByOidtableOid tableColumnformat optionalFieldpgArrayFieldParserfromFieldJSONByteString fromJSONField returnErrorattoFieldParser$fExceptionResultError$fFromFieldMVar$fFromFieldIORef$fFromFieldValue$fFromFieldUUID$fFromFieldMVector$fFromFieldVector$fFromFieldPGArray$fFromFieldEither$fFromFieldCalendarDiffTime$fFromFieldUnbounded$fFromFieldUnbounded0$fFromFieldUnbounded1$fFromFieldUnbounded2$fFromFieldTimeOfDay$fFromFieldDay$fFromFieldLocalTime$fFromFieldZonedTime$fFromFieldUTCTime $fFromField[] $fFromFieldCI$fFromFieldCI0$fFromFieldText$fFromFieldText0$fFromFieldBinary$fFromFieldBinary0$fFromFieldByteString$fFromFieldOid$fFromFieldByteString0$fFromFieldScientific$fFromFieldRatio$fFromFieldDouble$fFromFieldFloat$fFromFieldInteger$fFromFieldInt64$fFromFieldInt$fFromFieldInt32$fFromFieldInt16$fFromFieldChar$fFromFieldBool$fFromFieldNull$fFromFieldMaybe$fFromFieldIdentity$fFromFieldConst $fFromField()$fEqResultError$fShowResultErrorPGRange RangeBound Inclusive Exclusiveempty isEmptyByisEmptycontains containsByfromFieldRange$fToFieldPGRange$fToFieldPGRange0$fToFieldPGRange1$fToFieldPGRange2$fToFieldPGRange3$fToFieldPGRange4$fToFieldPGRange5$fToFieldPGRange6$fToFieldPGRange7$fToFieldPGRange8$fToFieldPGRange9$fToFieldPGRange10$fToFieldPGRange11$fToFieldPGRange12$fToFieldPGRange13$fToFieldPGRange14$fToFieldPGRange15$fToFieldPGRange16$fToFieldPGRange17$fToFieldPGRange18$fToFieldPGRange19$fToFieldPGRange20$fToFieldPGRange21$fToFieldPGRange22$fFromFieldPGRange $fEqPGRange $fShowPGRange$fFunctorPGRange$fShowRangeBound$fEqRangeBound$fFunctorRangeBoundAesongetAeson$fFromFieldAeson$fToFieldAeson $fEqAeson $fShowAeson $fReadAeson$fFunctorAeson HStoreMap fromHStoreMap HStoreListfromHStoreList HStoreText ToHStoreText toHStoreText HStoreBuilderEmptyCommaToHStoretoHStore toBuildertoLazyByteStringhstoreparseHStoreList parseHStoreparseHStoreKeyValparseHStoreTextfromRow fieldWithfieldnumFieldsRemaining $fGFromRowU1 $fGFromRowK1 $fGFromRow:*: $fGFromRowM1 $fFromRow:.$fFromRowMaybe$fFromRowVector$fFromRowMaybe0 $fFromRow[]$fFromRowMaybe1$fFromRow(,,,,,,,,,,,,,,,,,,,)$fFromRowMaybe2$fFromRow(,,,,,,,,,,,,,,,,,,)$fFromRowMaybe3$fFromRow(,,,,,,,,,,,,,,,,,)$fFromRowMaybe4$fFromRow(,,,,,,,,,,,,,,,,)$fFromRowMaybe5$fFromRow(,,,,,,,,,,,,,,,)$fFromRowMaybe6$fFromRow(,,,,,,,,,,,,,,)$fFromRowMaybe7$fFromRow(,,,,,,,,,,,,,)$fFromRowMaybe8$fFromRow(,,,,,,,,,,,,)$fFromRowMaybe9$fFromRow(,,,,,,,,,,,)$fFromRowMaybe10$fFromRow(,,,,,,,,,,)$fFromRowMaybe11$fFromRow(,,,,,,,,,)$fFromRowMaybe12$fFromRow(,,,,,,,,)$fFromRowMaybe13$fFromRow(,,,,,,,)$fFromRowMaybe14$fFromRow(,,,,,,)$fFromRowMaybe15$fFromRow(,,,,,)$fFromRowMaybe16$fFromRow(,,,,)$fFromRowMaybe17$fFromRow(,,,)$fFromRowMaybe18 $fFromRow(,,)$fFromRowMaybe19 $fFromRow(,)$fFromRowMaybe20 $fFromRowOnlyCursor declareCursor closeCursorfoldForwardWithParser foldForward FoldOptions fetchQuantitytransactionMode FetchQuantity AutomaticFixed formatQuery formatMany returningWith queryWith queryWith_foldfoldWithdefaultFoldOptionsfoldWithOptionsfoldWithOptionsAndParserfold_ foldWith_foldWithOptions_foldWithOptionsAndParser_forEach forEachWithforEach_ forEachWith_ CopyOutResult CopyOutRow CopyOutDonecopycopy_ foldCopyData getCopyData putCopyData putCopyEnd putCopyError$fEqCopyOutResult$fShowCopyOutResultmaskGHC.IOGHC.Base<> GHC.IO.UnsafeunsafeDupablePerformIO)scientific-0.3.6.2-CuRixiYtZBNALS76xRNfDZ!Data.Text.Lazy.Builder.ScientificscientificBuilder toByteStringtoPicofromPicoday timeOfDaytimeZone GHC.MaybeNothing timeZoneHMS localTimeutcTime zonedTime UTCOffsetHMScalendarDiffTimenominalDiffTime getUnboundedgetCalendarDiffTime Data.StringIsStringbytestring-0.10.10.0Data.ByteString.Internal ByteStringghc-prim GHC.TypesBool$aeson-1.5.5.1-84KYGkng9mGI5rKNjU8k2IData.Aeson.Types.InternalValueData.Aeson.Types.ToJSONtoJSON GHC.GenericsGenericSystem.Posix.TypesCPidControl.Exception.Base handleJustTrueFalseResultData.Aeson.Types.FromJSONFromJSONData.Typeable.InternalTypeableMaybeJust Data.Functor<$>GHC.MVarMVar GHC.IORefIORef Data.EitherRight*attoparsec-0.13.2.4-JRid9zEiLev1OUHUDdftfY Data.Attoparsec.ByteString.Char8doubleData.Scientific ScientificGHC.RealRational\/ToJSONfinishQueryWithfinishQueryWithVfinishQueryWithVU getRowWith$fToHStoreTextByteString$fToHStoreTextByteString0$fFromFieldHStoreList$fToHStoreHStoreList escapeAppendskipWhiteSpaceparseHStoreTextsLeft