packages feed

lrucache-0.2: lrucache.cabal

Name:                lrucache
Version:             0.2
Synopsis:            a simple, pure LRU cache
License:             BSD3
License-file:        LICENSE
Author:              Carl Howells
Maintainer:          chowells79@gmail.com
Copyright:           Carl Howells, 2010
Homepage:            http://github.com/chowells79/lrucache
Stability:           Experimental
Category:            Data
Build-type:          Simple
Description:
        This package contains a simple, pure LRU cache, implemented in
        terms of "Data.Map".
        .
        It also contains a mutable IO wrapper providing atomic updates to
        an LRU cache.
        .
        Version History:
        .
        0.2 - Added an Eq instance for LRU.
              Added strictness to eliminate space leaks in common use patterns.
        .
        0.1.1 - Add the Data.Cache.LRU.IO.Internal module.
                Clean up build warnings on GHC 6.12.1.
        .
        0.1.0.1 - Minor refactoring
        .
        0.1 - First release

Extra-source-files:
        README
        TestDriver.hs

Cabal-version:       >=1.6

Flag Test
  Description: Build test executables
  Default: False

Library
  Exposed-modules:
        Data.Cache.LRU
        Data.Cache.LRU.Internal
        Data.Cache.LRU.IO
        Data.Cache.LRU.IO.Internal

  Build-depends:
        base > 4 && < 5,
        containers > 0.2 && < 0.4

  GHC-Options:             -Wall


Executable test
  if flag(test)
    Buildable: True

    Build-Depends:
        explicit-exception == 0.1.*,
        QuickCheck == 2.1.*

  else
    Buildable: False

  Main-is:                 TestDriver.hs
  GHC-Options:             -Wall