packages feed

cached-io-1.2.0.0: cached-io.cabal

cabal-version:      2.2
name:               cached-io
version:            1.2.0.0
synopsis:           A simple library to cache IO actions
description:
  Provides functions that convert an IO action into a cached one by storing the
  original result for a period of time, or until some condition is met.

license:            Apache-2.0
license-file:       LICENSE
author:             SumAll, Inc.
maintainer:         Bellroy Tech Team <haskell@bellroy.com>
category:           Development
build-type:         Simple
tested-with:        GHC ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.1
extra-source-files:
  CHANGELOG.md
  README.md

source-repository head
  type:     git
  location: https://github.com/bellroy/haskell-cached-io.git

common deps
  build-depends: base >=4.13.0.0 && <4.18

library
  import:           deps
  exposed-modules:  Control.Concurrent.CachedIO
  build-depends:
    , exceptions    >=0.10.4  && <0.11
    , stm           >=2.5     && <2.6
    , time          >=1.9.3   && <1.13
    , transformers  >=0.5.6.2 && <0.7

  hs-source-dirs:   src/
  default-language: Haskell2010
  ghc-options:      -fwarn-unused-imports -Wall -fno-warn-unused-do-bind

  if flag(developer)
    ghc-options: -Werror

flag developer
  manual:      True
  default:     False
  description: compile with -Werror to make warnings fatal

executable test-cachedIO
  import:           deps
  main-is:          test-cachedIO.hs
  build-depends:    cached-io
  hs-source-dirs:   test/
  default-language: Haskell2010
  ghc-options:
    -threaded -rtsopts -fwarn-unused-imports -Wall
    -fno-warn-unused-do-bind

  if flag(developer)
    ghc-options: -Werror