name:                postgresql-named
version:             0.1.0
synopsis:            Generic deserialization of PostgreSQL rows based on column names
description:         See README.md
homepage:            https://github.com/cocreature/postgresql-named#readme
license:             BSD3
license-file:        LICENSE
author:              Moritz Kiefer
maintainer:          moritz.kiefer@purelyfunctional.org
copyright:           (C) 2017 Moritz Kiefer
category:            Web
build-type:          Simple
extra-source-files:  README.md
                     CHANGELOG.md
cabal-version:       >=1.10
tested-with:         GHC==8.0.2, GHC==8.2.1

library
  hs-source-dirs:      src
  exposed-modules:     Database.PostgreSQL.Simple.FromRow.Named
  build-depends:       base >= 4.9 && < 5
                     , bytestring >= 0.10 && < 0.11
                     , extra >= 1.5 && < 1.6
                     , generics-sop >= 0.3 && < 0.4
                     , mtl >= 2.2 && < 2.3
                     , postgresql-libpq >= 0.9 && < 0.10
                     , postgresql-simple >= 0.5 && < 0.6
                     , utf8-string
  default-language:    Haskell2010
  ghc-options:         -Wall

test-suite postgresql-named-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , generics-sop
                     , hspec >= 2.4 && < 2.5
                     , postgresql-named
                     , postgresql-simple
  ghc-options:         -Wall -threaded -rtsopts
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/cocreature/postgresql-named