packages feed

servant-db-postgresql-0.2.0.0: servant-db-postgresql.cabal

name:                 servant-db-postgresql
version:              0.2.0.0
synopsis:             Derive a postgres client to database API specified by servant-db
-- description:
license:              BSD3
license-file:         LICENSE
homepage:             
author:               Anton Gushcha
maintainer:           ncrashed@gmail.com
category:             Database
copyright:            2016 (c) Anton Gushcha
build-type:           Simple
extra-source-files:
  README.md
  CHANGELOG.md
cabal-version:        >=1.10

flag examples
  description: Enables compilation of examples
  default: False

library
  exposed-modules:
    Servant.DB.PostgreSQL
    Servant.DB.PostgreSQL.Composite
    Servant.DB.PostgreSQL.Context
    Servant.DB.PostgreSQL.Default
    Servant.DB.PostgreSQL.HasDB
    Servant.DB.PostgreSQL.Variadic
  -- other-modules:
  -- other-extensions:
  build-depends:
      base                          >= 4.7   && < 5
    , bytestring                    >= 0.10  && < 0.11
    , containers                    >= 0.5   && < 0.6
    , postgresql-query              >= 3.0   && < 3.1
    , postgresql-simple             >= 0.5   && < 0.6
    , servant                       >= 0.9   && < 0.10
    , servant-db                    >= 0.2   && < 0.3
    , text                          >= 1.2   && < 1.3
  hs-source-dirs:       src
  default-language:     Haskell2010
  default-extensions:
    DeriveGeneric
    OverloadedStrings
    ScopedTypeVariables

executable servant-db-postgresql-example01
  if flag(examples)
    buildable: True
  else
    buildable: False

  main-is:              Main.hs
  hs-source-dirs:       example01
  default-language:     Haskell2010
  build-depends:
      base
    , bytestring
    , monad-logger                   >= 0.3   && < 0.4
    , postgresql-query
    , servant-db
    , servant-db-postgresql
    , time
    , transformers-base             >= 0.4   && < 0.5

test-suite servant-db-postgresql-test
  main-is:              Spec.hs
  type:                 exitcode-stdio-1.0
  other-modules:
    DB
    Fixture
    Fixture.User
    Servant.PostgreSQLSpec
  build-depends:
      base                          >= 4.7   && < 5
    , bytestring                    >= 0.10  && < 0.11
    , derive                        >= 2.5   && < 2.6
    , hspec                         >= 2.2   && < 2.4
    , HUnit                         >= 1.3   && < 1.4
    , monad-logger                  >= 0.3   && < 0.4
    , optparse-applicative          >= 0.12  && < 0.13
    , postgresql-query              >= 3.0   && < 3.1
    , QuickCheck                    >= 2.8   && < 3.0
    , quickcheck-instances          >= 0.3   && < 0.4
    , servant-db
    , servant-db-postgresql
    , text                          >= 1.2   && < 1.3
    , time                          >= 1.6   && < 1.7
    , transformers-base             >= 0.4   && < 0.5
  hs-source-dirs:       test
  default-language:     Haskell2010
  default-extensions:
    DeriveGeneric
    OverloadedStrings
    QuasiQuotes
    ScopedTypeVariables
    TemplateHaskell