lazy-async-1.0.0.2: lazy-async.cabal
cabal-version: 3.0
name: lazy-async
version: 1.0.0.2
synopsis: Asynchronous actions that don't start right away
category: Concurrency
description: Sometimes we have a bunch of I/O actions that might not end up
being needed, and we don't want to simply run all the actions upfront.
We also don't want to simply run an action right before its result is
needed, because it might be needed in more than one place, which opens
the possibility of unnecessarily running the same action more than once.
In situations like these, we use LazyAsync.
homepage: https://github.com/typeclasses/lazy-async
bug-reports: https://github.com/typeclasses/lazy-async/issues
author: Chris Martin
maintainer: Chris Martin, Julie Moronuki
copyright: 2021 Mission Valley Software LLC
license: MIT
license-file: license.txt
extra-source-files: *.md
source-repository head
type: git
location: https://github.com/typeclasses/lazy-async
common language
default-language: Haskell2010
ghc-options: -Wall
default-extensions:
DeriveFoldable
DeriveFunctor
DeriveTraversable
ExistentialQuantification
FlexibleContexts
NoImplicitPrelude
StandaloneDeriving
common dependencies
build-depends:
, base ^>= 4.14 || ^>= 4.15 || ^>= 4.16 || ^>= 4.17
, exceptions ^>= 0.10.4
, lifted-async ^>= 0.10.2
, monad-control ^>= 1.0.3
, rank2classes ^>= 1.4.4
, stm ^>= 2.5
, transformers ^>= 0.5.6
, transformers-base ^>= 0.4.6
library
import: language, dependencies
hs-source-dirs: src
exposed-modules:
LazyAsync
other-modules:
LazyAsync.Actions
LazyAsync.Actions.Empty
LazyAsync.Actions.Memoize
LazyAsync.Actions.Merge
LazyAsync.Actions.Poll
LazyAsync.Actions.Pure
LazyAsync.Actions.Spawn
LazyAsync.Actions.Start
LazyAsync.Actions.StartWait
LazyAsync.Actions.Wait
LazyAsync.Libraries.Async
LazyAsync.Libraries.Rank2
LazyAsync.Orphans
LazyAsync.Prelude
LazyAsync.Types
LazyAsync.Types.Complex
LazyAsync.Types.LazyAsync
LazyAsync.Types.NoAlternative
LazyAsync.Types.Outcome
LazyAsync.Types.Resource
LazyAsync.Types.StartPoll
LazyAsync.Types.Status
test-suite test
import: language, dependencies
hs-source-dirs: test
type: exitcode-stdio-1.0
main-is: test.hs
default-extensions:
BlockArguments
OverloadedStrings
TemplateHaskell
build-depends:
, hedgehog ^>= 1.0.5 || ^>= 1.1 || ^>= 1.2
, lazy-async
, optics-core ^>= 0.4.1
, optics-th ^>= 0.4.1
other-modules:
Test.Counter
Test.Exceptions
Test.General
Test.Optics
Test.Person