packages feed

eventium-postgresql-0.3.1: eventium-postgresql.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.38.3.
--
-- see: https://github.com/sol/hpack

name:           eventium-postgresql
version:        0.3.1
synopsis:       Postgres implementations for eventium
description:    Eventium-postgresql provides a PostgreSQL-based event store implementation for the Eventium event
                sourcing framework. It uses the Persistent library for type-safe database access and provides
                efficient event storage and retrieval with support for aggregate streams, event versioning, and
                optimistic concurrency control. This is a production-ready backend for event-sourced applications.
category:       Database,Eventsourcing,PostgreSQL
stability:      experimental
homepage:       https://github.com/aleks-sidorenko/eventium#readme
bug-reports:    https://github.com/aleks-sidorenko/eventium/issues
maintainer:     Alexander Sidorenko
license:        MIT
license-file:   LICENSE.md
build-type:     Simple
extra-source-files:
    CHANGELOG.md
    README.md

source-repository head
  type: git
  location: https://github.com/aleks-sidorenko/eventium

flag ci
  description: Enable -Werror for CI builds
  manual: True
  default: False

library
  exposed-modules:
      Eventium.ProjectionCache.Postgresql
      Eventium.Store.Postgresql
  other-modules:
      Paths_eventium_postgresql
  hs-source-dirs:
      src
  default-extensions:
      NoFieldSelectors
      DuplicateRecordFields
      OverloadedRecordDot
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wredundant-constraints -Wno-type-defaults -Wno-incomplete-uni-patterns
  build-depends:
      aeson >=1.5 && <2.3
    , base >=4.9 && <5
    , bytestring >=0.10 && <0.13
    , eventium-core >=0.3.0 && <0.4.0
    , eventium-sql-common >=0.3.0 && <0.4.0
    , mtl >=2.2 && <2.4
    , persistent >=2.14 && <2.18
    , text >=1.2 && <2.2
  default-language: Haskell2010
  if flag(ci)
    ghc-options: -Werror

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Eventium.ProjectionCache.PostgresqlSpec
      Eventium.Store.PostgresqlSpec
      Eventium.ProjectionCache.Postgresql
      Eventium.Store.Postgresql
      Paths_eventium_postgresql
  hs-source-dirs:
      tests
      src
  default-extensions:
      NoFieldSelectors
      DuplicateRecordFields
      OverloadedRecordDot
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wredundant-constraints -Wno-type-defaults -Wno-incomplete-uni-patterns
  build-tool-depends:
      hspec-discover:hspec-discover
  build-depends:
      HUnit
    , aeson >=1.5 && <2.3
    , base >=4.9 && <5
    , bytestring >=0.10 && <0.13
    , eventium-core >=0.3.0 && <0.4.0
    , eventium-sql-common >=0.3.0 && <0.4.0
    , eventium-testkit
    , hspec
    , mtl >=2.2 && <2.4
    , persistent >=2.14 && <2.18
    , persistent-postgresql
    , text >=1.2 && <2.2
    , utf8-string
  default-language: Haskell2010
  if flag(ci)
    ghc-options: -Werror