forked from nikita-volkov/postgresql-connection-string
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostgresql-connection-string.cabal
More file actions
137 lines (121 loc) · 3.34 KB
/
postgresql-connection-string.cabal
File metadata and controls
137 lines (121 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
cabal-version: 3.0
name: postgresql-connection-string
version: 0.1.0.6
category: Database, PostgreSQL
synopsis: PostgreSQL connection string type, parser and builder
description:
A library for parsing and constructing PostgreSQL connection strings (URIs and keyword/value format).
Supports the full PostgreSQL connection URI format as specified in
<https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING the PostgreSQL documentation>,
including:
* User and password authentication
* Single and multiple host specifications with optional ports
* Database name specification
* Connection parameters as query string
* Percent-encoding for special characters
The library provides both parsing (from Text to structured representation) and
rendering (back to connection string format, either as URI or keyword/value pairs).
homepage: https://github.com/nikita-volkov/postgresql-connection-string
bug-reports: https://github.com/nikita-volkov/postgresql-connection-string/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2025, Nikita Volkov
license: MIT
license-file: LICENSE
extra-source-files:
README.md
extra-doc-files:
CHANGELOG.md
source-repository head
type: git
location: https://github.com/nikita-volkov/postgresql-connection-string
common base
default-language: Haskell2010
default-extensions:
ApplicativeDo
Arrows
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
DerivingVia
DuplicateRecordFields
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
LiberalTypeSynonyms
MultiParamTypeClasses
MultiWayIf
NamedFieldPuns
NoImplicitPrelude
NoMonomorphismRestriction
NumericUnderscores
OverloadedStrings
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
StrictData
TupleSections
TypeApplications
TypeFamilies
TypeOperators
ViewPatterns
common test
import: base
ghc-options:
-threaded
-with-rtsopts=-N
library
import: base
hs-source-dirs: src/library
exposed-modules:
PostgresqlConnectionString
other-modules:
PercentEncoding
PercentEncoding.Charsets
PercentEncoding.MonadPlus
PercentEncoding.Parsers
PercentEncoding.TextBuilders
PercentEncoding.Utf8CharView
Platform.Prelude
PostgresqlConnectionString.Charsets
PostgresqlConnectionString.Parsers
PostgresqlConnectionString.Types
PostgresqlConnectionString.Types.Gens
build-depends:
QuickCheck >=2.14 && <3,
base >=4.13 && <5,
bytestring >=0.10 && <0.13,
charset ^>=0.3.12,
containers >=0.6 && <0.9,
hashable >=1.2 && <2,
megaparsec >=9.2.1 && <10.0,
text >=1.2 && <3,
text-builder >=1 && <1.1,
test-suite library-tests
import: test
type: exitcode-stdio-1.0
hs-source-dirs: src/library-tests
main-is: Main.hs
build-depends:
QuickCheck >=2.14 && <3,
base >=4.13 && <5,
containers >=0.6 && <0.9,
hspec ^>=2.11.12,
postgresql-connection-string,
quickcheck-classes >=0.6.5 && <0.7,
text >=1.2 && <3,