packages feed

keiro-test-support-0.18.0.0: keiro-test-support.cabal

cabal-version: 3.0
name: keiro-test-support
version: 0.18.0.0
synopsis: Shared PostgreSQL test fixtures for Keiro test suites
description:
  Suite-level ephemeral-PostgreSQL fixtures shared by the Keiro test
  suites. Implements the ephemeral-pg template-database pattern: one cached
  server per suite, one migrated template database, and a clean cloned
  database per example.

license: BSD-3-Clause
license-file: LICENSE
author: Nadeem Bitar
maintainer: nadeem@gmail.com
copyright: 2026 Nadeem Bitar
category: Testing
homepage: https://github.com/shinzui/keiro#readme
bug-reports: https://github.com/shinzui/keiro/issues
build-type: Simple
extra-doc-files: CHANGELOG.md
tested-with: ghc >=9.12 && <9.13

source-repository head
  type: git
  location: https://github.com/shinzui/keiro.git

common warnings
  ghc-options:
    -Wall
    -Wcompat
    -Widentities
    -Wincomplete-record-updates
    -Wincomplete-uni-patterns
    -Wpartial-fields
    -Wredundant-constraints

library
  import: warnings
  default-language: GHC2024
  default-extensions:
    BlockArguments
    ImportQualifiedPost
    OverloadedLabels
    OverloadedRecordDot
    OverloadedStrings

  exposed-modules:
    Keiro.Test.Postgres
    Keiro.Test.ReplayCompatibility

  hs-source-dirs: src
  build-depends:
    aeson >=2.2 && <2.3,
    base >=4.21 && <5,
    containers >=0.6 && <0.8,
    directory >=1.3 && <1.4,
    effectful >=2.6 && <2.7,
    ephemeral-pg >=0.3.1 && <0.4,
    hasql >=1.10 && <1.11,
    hasql-pool >=1.2 && <1.5,
    keiro-migrations ^>=0.18.0.0,
    kiroku-store >=0.8 && <0.9,
    kiroku-store-migrations ^>=0.4.0.0,
    pg-migrate ^>=1.1.0.0,
    stm >=2.5 && <2.6,
    text >=2.1 && <2.2,
    unix >=2.8 && <2.9,

test-suite keiro-test-support-test
  import: warnings
  type: exitcode-stdio-1.0
  default-language: GHC2024
  default-extensions:
    BlockArguments
    OverloadedRecordDot
    OverloadedStrings

  hs-source-dirs: test
  main-is: Main.hs
  build-depends:
    aeson >=2.2 && <2.3,
    base >=4.21 && <5,
    containers >=0.6 && <0.8,
    hspec >=2.11,
    keiro-test-support,
    text >=2.1 && <2.2,