packages feed

postgresql-placeholder-converter-0.1.0.0: postgresql-placeholder-converter.cabal

cabal-version:       2.2

name:                postgresql-placeholder-converter
version:             0.1.0.0
author:              Kazuki Okamoto
copyright:           2020 Kazuki Okamoto, 2019 IIJ Innovation Institute Inc.
license:             BSD-3-Clause
license-file:        LICENSE
maintainer:          kazuki.okamoto@kakkun61.com
category:            Database
description:         This library provides functions to convert question mark style to dollar sign style of PostgreSQL SQL.
synopsis:            Converter for question mark style and dollar sign style of PostgreSQL SQL.
homepage:            https://github.com/kakkun61/postgresql-placeholder-converter
bug-reports:         https://github.com/kakkun61/postgresql-placeholder-converter/issues

build-type:          Simple

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

common common
  build-depends:       base >= 4.12 && < 4.15
  default-language:    Haskell2010

library
  import:              common
  hs-source-dirs:      src
  exposed-modules:     Database.PostgreSQL.Placeholder.Convert
  other-modules:       Database.PostgreSQL.Placeholder.Convert.QuestionToDollar
  build-depends:       attoparsec,
                       bytestring,
                       mtl,
                       utf8-string
  ghc-options:         -Wall
                       -Wcompat
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wmonomorphism-restriction
                       -Wmissing-exported-signatures
                       -Wmissing-home-modules
                       -Wmissing-import-lists
                       -Widentities
                       -Wredundant-constraints
                       -Wno-name-shadowing

test-suite test
  import:             common
  type:               exitcode-stdio-1.0
  hs-source-dirs:     test
  main-is:            Spec.hs
  other-modules:      Database.PostgreSQL.Placeholder.ConvertSpec
  ghc-options:        -threaded
                      -rtsopts
                      -with-rtsopts=-N
                      -Wno-missing-import-lists
  build-depends:      postgresql-placeholder-converter,
                      hspec
  build-tool-depends: hspec-discover:hspec-discover