packages feed

valiant-streaming-0.1.0.0: valiant-streaming.cabal

cabal-version:   3.0
name:            valiant-streaming
version:         0.1.0.0
synopsis:        Streaming adapter for valiant (streaming library)
description:
  Stream PostgreSQL query results using the @streaming@ library.
  Provides cursor-based and fold-based producers as @Stream (Of r) IO ()@
  values.
license:         BSD-3-Clause
license-file:    LICENSE
author:          Josh Burgess
maintainer:      joshburgess.webdev@gmail.com
category:        Database
homepage:        https://github.com/joshburgess/valiant
bug-reports:     https://github.com/joshburgess/valiant/issues
build-type:      Simple
extra-doc-files:
  README.md
  CHANGELOG.md
tested-with:     GHC ==9.10.3

source-repository head
  type:     git
  location: https://github.com/joshburgess/valiant
  subdir:   adapters/valiant-streaming

flag werror
  description: Enable -Werror for development builds.
  default:     False
  manual:      True

common warnings
  ghc-options: -Wall -Wcompat -Wno-unticked-promoted-constructors -funbox-strict-fields -fspecialise-aggressively
  if flag(werror)
    ghc-options: -Werror

library
  import:           warnings
  hs-source-dirs:   src
  default-language: GHC2021
  default-extensions:
    DerivingStrategies
    OverloadedStrings
    StrictData

  exposed-modules:
    Valiant.Stream

  build-depends:
    , base            >=4.17 && <5
    , valiant         >=0.1  && <0.2
    , streaming       >=0.2  && <0.3

test-suite valiant-streaming-test
  import:           warnings
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Main.hs
  default-language: GHC2021
  default-extensions:
    OverloadedStrings

  ghc-options: -rtsopts "-with-rtsopts=-K8K"

  other-modules:
    TestSupport

  build-depends:
    , base            >=4.17 && <5
    , bytestring      >=0.11 && <0.13
    , hspec           >=2.11 && <2.13
    , valiant
    , valiant-streaming
    , pg-wire
    , streaming       >=0.2  && <0.3
    , text            >=2.0  && <2.2