packages feed

network-wait-0.3.0.0: network-wait.cabal

cabal-version: 1.12

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

name:           network-wait
version:        0.3.0.0
synopsis:       Lightweight library for waiting on networked services to become available.
description:    Please see the README on GitHub at <https://github.com/mbg/network-wait#readme> and
                Haddock documentation for all modules, including those that are gated behind
                package flags, at <https://mbg.github.io/network-wait/>
category:       Network
homepage:       https://github.com/mbg/network-wait#readme
bug-reports:    https://github.com/mbg/network-wait/issues
author:         Michael B. Gale
maintainer:     github@michael-gale.co.uk
copyright:      2025 Michael B. Gale
license:        MIT
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    ChangeLog.md

source-repository head
  type: git
  location: https://github.com/mbg/network-wait

flag postgres
  description: Enable Postgres support.
  manual: True
  default: False

flag redis
  description: Enable Redis support.
  manual: True
  default: False

library
  exposed-modules:
      Network.Wait
  other-modules:
      Paths_network_wait
  hs-source-dirs:
      src
  ghc-options: -Wall
  build-depends:
      base >=4.7 && <5
    , bytestring
    , exceptions
    , network
    , retry
  default-language: Haskell2010
  if flag(postgres)
    build-depends:
        postgresql-simple
  if flag(redis)
    build-depends:
        hedis
  if flag(postgres)
    exposed-modules:
        Network.Wait.PostgreSQL
  if flag(redis)
    exposed-modules:
        Network.Wait.Redis

test-suite network-wait-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_network_wait
  hs-source-dirs:
      test
  ghc-options: -Wall
  build-depends:
      base >=4.7 && <5
    , bytestring
    , exceptions
    , network
    , network-simple
    , network-wait
    , retry
    , tasty
    , tasty-hunit
  default-language: Haskell2010
  if flag(postgres)
    build-depends:
        postgresql-simple
  if flag(redis)
    build-depends:
        hedis

test-suite network-wait-test-postgres
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_network_wait
  hs-source-dirs:
      test-postgres
  ghc-options: -Wall
  build-depends:
      base >=4.7 && <5
    , bytestring
    , exceptions
    , network
    , network-wait
    , retry
    , tasty
    , tasty-hunit
  default-language: Haskell2010
  if flag(postgres)
    build-depends:
        postgresql-simple
  if flag(redis)
    build-depends:
        hedis
  if flag(postgres)
    buildable: True
  else
    buildable: False

test-suite network-wait-test-redis
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Paths_network_wait
  hs-source-dirs:
      test-redis
  ghc-options: -Wall
  build-depends:
      base >=4.7 && <5
    , bytestring
    , exceptions
    , network
    , network-wait
    , retry
    , tasty
    , tasty-hunit
  default-language: Haskell2010
  if flag(postgres)
    build-depends:
        postgresql-simple
  if flag(redis)
    build-depends:
        hedis
  if flag(redis)
    buildable: True
  else
    buildable: False