packages feed

hasql-interpolate-0.2.2.0: hasql-interpolate.cabal

cabal-version:      2.4
name:               hasql-interpolate
version:            0.2.2.0

author: Travis Staton <hello@travisstaton.com>
category: Hasql, Database, PostgreSQL
copyright: 2021, Travis Staton
extra-source-files: CHANGELOG.md
homepage: https://github.com/awkward-squad/hasql-interpolate
license-file: LICENSE
license: BSD-3-Clause
tested-with: GHC == 9.2.8, GHC == 9.4.5
maintainer: Travis Staton <hello@travisstaton.com>, Mitchell Rosen
synopsis: QuasiQuoter that supports expression interpolation for hasql
description:

  @hasql-interpolate@ provides a sql QuasiQuoter for hasql that
  supports interpolation of haskell expressions and splicing of sql
  snippets. A number of type classes are also provided to reduce
  encoder/decoder boilerplate.

library
    exposed-modules:  Hasql.Interpolate
                      Hasql.Interpolate.Internal.TH

    other-modules:    Hasql.Interpolate.Internal.Json
                      Hasql.Interpolate.Internal.Encoder
                      Hasql.Interpolate.Internal.Decoder
                      Hasql.Interpolate.Internal.OneColumn
                      Hasql.Interpolate.Internal.OneRow
                      Hasql.Interpolate.Internal.RowsAffected
                      Hasql.Interpolate.Internal.Decoder.TH
                      Hasql.Interpolate.Internal.Sql
                      Hasql.Interpolate.Internal.CompositeValue
                      Hasql.Interpolate.Internal.EncodeRow
                      Hasql.Interpolate.Internal.EncodeRow.TH

    build-depends:    aeson ^>= 1.5 || ^>= 2.0 || ^>= 2.1 || ^>= 2.2,
                      array ^>= 0.5,
                      base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17 || ^>= 4.18 || ^>= 4.19,
                      bytestring ^>= 0.10 || ^>= 0.11 || ^>= 0.12,
                      containers ^>= 0.5 || ^>= 0.6 || ^>= 0.7,
                      haskell-src-meta ^>= 0.8,
                      hasql ^>= 1.4 || ^>= 1.5 || ^>= 1.6 || ^>= 1.7,
                      megaparsec ^>= 8.0.0 || ^>= 9.0 || ^>= 9.1 || ^>= 9.2 || ^>= 9.3 || ^>= 9.4 || ^>= 9.5 || ^>= 9.6,
                      mtl ^>= 2.1 || ^>= 2.2 || ^>= 2.3,
                      scientific ^>= 0.3,
                      template-haskell ^>= 2.14 || ^>= 2.15 || ^>= 2.16 || ^>= 2.17 || ^>= 2.18 || ^>= 2.19 || ^>= 2.20 || ^>= 2.21,
                      text ^>= 1.2.4 || ^>= 2.0 || ^>= 2.1,
                      time ^>= 1.9.3 || ^>= 1.10 || ^>= 1.11 || ^>= 1.12 || ^>= 1.14,
                      transformers ^>= 0.5 || ^>= 0.6,
                      uuid ^>= 1.3,
                      vector ^>= 0.11 || ^>= 0.12 || ^>= 0.13,

    hs-source-dirs:   lib
    default-language: Haskell2010
    ghc-options:
      -Wall
      -Wcompat
      -Widentities
      -Wincomplete-record-updates
      -Wincomplete-uni-patterns
      -Wredundant-constraints
      -Wpartial-fields
      -O2

test-suite unit
  type: exitcode-stdio-1.0
  main-is: Main.hs
  build-depends: base
               , hasql
               , hasql-interpolate
               , template-haskell
               , tasty
               , text
               , tasty-hunit
               , tmp-postgres
  hs-source-dirs: test
  default-language: Haskell2010