packages feed

hasql-cursor-query-0.4.5.4: hasql-cursor-query.cabal

cabal-version: 3.0
name: hasql-cursor-query
version: 0.4.5.4
category: Hasql, Database, PostgreSQL, Streaming
synopsis: A declarative abstraction over PostgreSQL Cursor
homepage: https://github.com/nikita-volkov/hasql-cursor-query
bug-reports: https://github.com/nikita-volkov/hasql-cursor-query/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2016, Nikita Volkov
license: MIT
license-file: LICENSE
extra-doc-files:
  CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/nikita-volkov/hasql-cursor-query

common base
  default-language: Haskell2010
  default-extensions:
    Arrows
    BangPatterns
    ConstraintKinds
    DataKinds
    DefaultSignatures
    DeriveDataTypeable
    DeriveFoldable
    DeriveFunctor
    DeriveGeneric
    DeriveTraversable
    EmptyDataDecls
    FlexibleContexts
    FlexibleInstances
    FunctionalDependencies
    GADTs
    GeneralizedNewtypeDeriving
    LambdaCase
    LiberalTypeSynonyms
    MagicHash
    MultiParamTypeClasses
    MultiWayIf
    NoImplicitPrelude
    NoMonomorphismRestriction
    OverloadedStrings
    ParallelListComp
    PatternGuards
    QuasiQuotes
    RankNTypes
    RecordWildCards
    ScopedTypeVariables
    StandaloneDeriving
    TemplateHaskell
    TupleSections
    TypeFamilies
    TypeOperators
    UnboxedTuples

common executable
  import: base
  ghc-options:
    -O2
    -threaded
    "-with-rtsopts=-N -I0 -qg"

common test
  import: base
  default-extensions:
    BlockArguments
    ImportQualifiedPost

  ghc-options:
    -threaded
    "-with-rtsopts=-N -I0 -qg"

library
  import: base
  hs-source-dirs: library
  other-modules:
    Hasql.CursorQuery.Private.CursorQuery
    Hasql.CursorQuery.Private.CursorTransactions
    Hasql.CursorQuery.Private.Decoders
    Hasql.CursorQuery.Private.Prelude
    Hasql.CursorQuery.Private.Sessions
    Hasql.CursorQuery.Private.Transactions

  exposed-modules:
    Hasql.CursorQuery
    Hasql.CursorQuery.CursorTransactions
    Hasql.CursorQuery.Sessions
    Hasql.CursorQuery.Transactions

  build-depends:
    base >=4.11 && <5,
    bytestring >=0.10 && <0.14,
    contravariant >=1.3 && <2,
    foldl >1 && <2,
    hasql >=1.10 && <1.11 || >=2.0 && <2.1,
    hasql-cursor-transaction >=0.6 && <0.7,
    hasql-transaction >=1.1 && <1.3,
    profunctors >=5 && <6,
    text >=1 && <3,

test-suite test
  import: test
  type: exitcode-stdio-1.0
  hs-source-dirs: src/integration-tests
  main-is: Main.hs
  other-modules:
    Helpers.Adapters
    Helpers.CursorQueries
    Helpers.Hooks
    Helpers.Scripts
    Helpers.Statements
    Specs.CursorQuerySpec
    Specs.SpecHook

  build-tool-depends:
    hspec-discover:hspec-discover ^>=2.11.12

  build-depends:
    foldl >=1.2 && <2,
    hasql,
    hasql-cursor-query,
    hspec >=2.6 && <3,
    pqi ^>=1.0,
    pqi-ffi ^>=1.0,
    pqi-native ^>=1.0,
    rerebase >=1.15 && <2,
    testcontainers-postgresql >=0.2 && <0.3,