packages feed

immortal-queue-0.1.0.0: immortal-queue.cabal

cabal-version: 1.12

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

name:           immortal-queue
version:        0.1.0.0
synopsis:       Build a pool of queue-processing worker threads.
description:    @immortal-queue@ is a library for build an asynchronous worker pool that
                processes action from a generic queue. You can use any thread-safe datatype
                with a push and pop like a @TQueue@ or a @persistent@ database table.
                .
                The worker pool is configured by building an @ImmortalQueue@ type, which
                describes how to push and pop from the queue as well as how to process
                items and handle errors.
                .
                For a simple usage example using a TQueue, see the module documentation.
                For a more complex example that uses a @persistent@ database as a queue,
                see
                <https://github.com/Southern-Exposure-Seed-Exchange/southernexposure.com/blob/develop/server/src/Workers.hs Southern Exposure's website code>.
category:       Concurrency
homepage:       https://github.com/prikhi/immortal-queue#readme
bug-reports:    https://github.com/prikhi/immortal-queue/issues
author:         Pavan Rikhi
maintainer:     pavan.rikhi@gmail.com
copyright:      2020 Pavan Rikhi
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/prikhi/immortal-queue

library
  exposed-modules:
      Control.Immortal.Queue
  other-modules:
      Paths_immortal_queue
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -O2
  build-depends:
      async >=2 && <3
    , base >=4.7 && <5
    , immortal <1 && >=0.2
  default-language: Haskell2010

test-suite immortal-queue-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      MockQueue
      Paths_immortal_queue
  hs-source-dirs:
      tests
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -O2 -threaded -rtsopts -with-rtsopts "-N -T"
  build-depends:
      base >=4.7 && <5
    , immortal-queue
    , stm
    , tasty
    , tasty-hunit
  default-language: Haskell2010