summaryrefslogtreecommitdiff
path: root/postgresql-query.cabal
blob: efecef4d049300797157676b78945828405ff521 (plain)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name:                postgresql-query
version:             3.8.1

synopsis: Sql interpolating quasiquote plus some kind of primitive ORM
          using it

license:             BSD3
license-file:        LICENSE
author:              Aleksey Uimanov
maintainer:          s9gf4ult@gmail.com
category:            Database
build-type:          Simple
cabal-version:       >=1.10

extra-source-files: CHANGELOG.md
                  , README.md

homepage: https://bitbucket.org/s9gf4ult/postgresql-query
source-repository head
  type: git
  location: git@bitbucket.org:s9gf4ult/postgresql-query.git

library
  hs-source-dirs: src

  exposed-modules: Database.PostgreSQL.Query
                 , Database.PostgreSQL.Query.Entity
                 , Database.PostgreSQL.Query.Entity.Class
                 , Database.PostgreSQL.Query.Entity.Functions
                 , Database.PostgreSQL.Query.Entity.Internal
                 , Database.PostgreSQL.Query.Functions
                 , Database.PostgreSQL.Query.Internal
                 , Database.PostgreSQL.Query.SqlBuilder
                 , Database.PostgreSQL.Query.SqlBuilder.Builder
                 , Database.PostgreSQL.Query.SqlBuilder.Class
                 , Database.PostgreSQL.Query.SqlBuilder.Types
                 , Database.PostgreSQL.Query.TH
                 , Database.PostgreSQL.Query.TH.Common
                 , Database.PostgreSQL.Query.TH.Entity
                 , Database.PostgreSQL.Query.TH.Enum
                 , Database.PostgreSQL.Query.TH.Row
                 , Database.PostgreSQL.Query.TH.SqlExp
                 , Database.PostgreSQL.Query.Types
  other-modules:   Database.PostgreSQL.Query.Import

  default-extensions: AutoDeriveTypeable
                    , CPP
                    , ConstraintKinds
                    , DataKinds
                    , DeriveDataTypeable
                    , DeriveGeneric
                    , EmptyDataDecls
                    , FlexibleContexts
                    , FlexibleInstances
                    , FunctionalDependencies
                    , GADTs
                    , GeneralizedNewtypeDeriving
                    , LambdaCase
                    , MultiParamTypeClasses
                    , OverloadedStrings
                    , QuasiQuotes
                    , RankNTypes
                    , RecordWildCards
                    , ScopedTypeVariables
                    , StandaloneDeriving
                    , TemplateHaskell
                    , TupleSections
                    , TypeFamilies
                    , TypeOperators
                    , UndecidableInstances
                    , ViewPatterns

  build-depends: aeson
               , attoparsec
               , base                          >=4.6      &&  < 5
               , blaze-builder
               , bytestring
               , containers
               , data-default
               , exceptions
               , file-embed
               , haskell-src-meta
               , hreader                       >= 1.0.0   && < 2.0.0
               , hset                          >= 2.0.0   && < 3.0.0
               , inflections                   >= 0.2     && < 1
               , monad-control                 == 0.3.3.1 || > 1.0.0.3
               , monad-logger
               , mtl
               , postgresql-simple             >= 0.4.10.0
               , resource-pool
               , semigroups
               , template-haskell
               , text
               , th-lift
               , th-lift-instances
               , time
               , transformers
               , transformers-base
               , transformers-compat           >= 0.3
               , type-fun                      >= 0.1.0

  ghc-options: -Wall

  default-language:    Haskell2010


test-suite test
  type:    exitcode-stdio-1.0
  default-language:    Haskell2010
  ghc-options:     -Wall
  hs-source-dirs:  test
  main-is: Main.hs
  other-modules: BuilderTest
               , ParserTest

  default-extensions: CPP
                    , FlexibleInstances
                    , OverloadedStrings
                    , QuasiQuotes
                    , TemplateHaskell

  build-depends: base                          >=4.6 && < 5
               , QuickCheck
               , attoparsec
               , generic-arbitrary
               , postgresql-query
               , postgresql-simple
               , quickcheck-assertions
               , quickcheck-instances
               , tasty
               , tasty-hunit
               , tasty-quickcheck
               , tasty-th
               , text

test-suite example
  type:    exitcode-stdio-1.0
  default-language:    Haskell2010
  ghc-options:     -Wall
  hs-source-dirs:  example
  main-is: Main.hs

  default-extensions: AutoDeriveTypeable
                    , FlexibleInstances
                    , OverloadedStrings
                    , TemplateHaskell

  build-depends: base
               , postgresql-query
               , text
               , time