packages feed

exp-cache-0.1.0.2: exp-cache.cabal

name:           exp-cache
version:        0.1.0.2
description:    Please see the README on Github at <https://github.com/ChrisCoffey/exp-cache#readme>
homepage:       https://github.com/ChrisCoffey/exp-cache#readme
bug-reports:    https://github.com/ChrisCoffey/exp-cache/issues
author:         Chris Coffey
maintainer:     chris@foldl.io
copyright:      2018 Chris Coffey
license:        MIT
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/ChrisCoffey/exp-cache

library
  hs-source-dirs:
      src
  build-depends:
      base >=4.7 && <5
    , time
    , unordered-containers
    , containers
    , deepseq
    , hashable
    , psqueues
    , array
    , random
  exposed-modules:
    Data.Cache
    , Data.Cache.Eviction.LRU
    , Data.Cache.Eviction.LFU
    , Data.Cache.Eviction.MRU
    , Data.Cache.Eviction.RR
    , Data.Cache.Eviction.FIFO
  other-modules:
    Data.Cache.Eviction
  default-extensions:  DataKinds FlexibleContexts ScopedTypeVariables OverloadedStrings ViewPatterns NamedFieldPuns
                       KindSignatures RecordWildCards ConstraintKinds TypeSynonymInstances FlexibleInstances MultiParamTypeClasses
                       InstanceSigs FunctionalDependencies TupleSections
  default-language: Haskell2010

test-suite exp-cache-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  default-extensions:  DataKinds FlexibleContexts ScopedTypeVariables OverloadedStrings ViewPatterns NamedFieldPuns
                       KindSignatures RecordWildCards ConstraintKinds TypeSynonymInstances FlexibleInstances MultiParamTypeClasses
                       InstanceSigs FunctionalDependencies TupleSections
  build-depends:
      base >=4.7 && <5
    , exp-cache
    , HUnit
    , QuickCheck
    , tasty
    , tasty-hunit
    , tasty-quickcheck
    , random
  other-modules:
      Spec.LRUTests,
      Spec.MRUTests,
      Spec.RRTests,
      Spec.LFUTests,
      Spec.CacheTests
  default-language: Haskell2010

executable exp-cache-benchmarks
    main-is: Main.hs
    hs-source-dirs:
        benchmarks
    ghc-options: -threaded -rtsopts -with-rtsopts=-N -O2 -fno-full-laziness
    build-depends:
        base
      , exp-cache
      , criterion
      , random
    other-modules:
        Benchmarks.LRU
        , Benchmarks.RR
        , Benchmarks.LFU
    default-language: Haskell2010