packages feed

cached-io-1.1.0.0: cached-io.cabal

-- Initial cached-io.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                cached-io
version:             1.1.0.0
synopsis:
  A simple library to cache a single IO action with timeout
description:
  A simple library that caches an expensive IO action. This produces an IO
  action that, when run, either runs the expensive action and saves its result
  for a period of time, or re-uses the saved value. This amortizes the cost of
  the expensive IO action without a lot of complexity.

  See the test program for an example of how to use it.
license:             Apache-2.0
license-file:        LICENSE
author:              SumAll, Inc.
maintainer:          eglassercamp@sumall.com
-- copyright:
category:            Development
build-type:          Simple
-- extra-source-files:
cabal-version:       >=1.10

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

library
  exposed-modules:     Control.Concurrent.CachedIO
  -- other-modules:
  -- other-extensions:
  build-depends:
    base >= 4.8 && < 5.0,
    stm,
    transformers,
    time
  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
  main-is: test-cachedIO.hs
  build-depends:
    base >=4.8 && <5.0,
    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