4 Synopsis: low-level binding to libpq
6 Description: This is a binding to libpq: the C application
7 programmer's interface to PostgreSQL. libpq is a
8 set of library functions that allow client
9 programs to pass queries to the PostgreSQL
10 backend server and to receive the results of
13 Homepage: https://github.com/phadej/postgresql-libpq
16 Author: Grant Monroe, Leon P Smith, Joey Adams
17 Maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
18 Copyright: (c) 2010 Grant Monroe
22 Extra-source-files: cbits/noticehandlers.h
40 base >= 4.3 && <5, Cabal >= 1.10 && <2.5
42 -- If true, use pkg-config, otherwise use the pg_config based build
50 c-sources: cbits/noticehandlers.c
52 Exposed-modules: Database.PostgreSQL.LibPQ
53 Database.PostgreSQL.LibPQ.Internal
54 Build-depends: base >=4.3 && <4.13
55 , bytestring >=0.9.1.0 && <0.11
58 Build-depends: unix >=2.4.2.0 && <2.8
61 Build-depends: Win32 >=2.2.0.2 && <2.7
65 if flag(use-pkg-config)
66 Pkgconfig-depends: libpq >=9.*
69 -- Due to https://sourceware.org/bugzilla/show_bug.cgi?id=22948,
70 -- if we specify pq instead of libpq, then ld might link against
71 -- libpq.dll directly, which can lead to segfaults. As a temporary hack,
72 -- we force ld to link against the libpq.lib import library directly
73 -- by specifying libpq here.
74 Extra-Libraries: libpq
78 Extra-Libraries: crypto ssl
81 Build-tools-depends: hsc2hs:hsc2hs