packages feed

arbor-lru-cache-0.1.1.1: arbor-lru-cache.cabal

cabal-version: 2.4

name:               arbor-lru-cache
version:            0.1.1.1
description:        Please see the README on GitHub at <https://github.com/arbor/arbor-lru-cache#readme>
homepage:           https://github.com/arbor/arbor-lru-cache#readme
bug-reports:        https://github.com/arbor/arbor-lru-cache/issues
author:             Arbor Networks
maintainer:         mayhem@arbor.net
copyright:          2018-2019 Arbor Networks
category:           Data, Concurrency
synopsis:           LRU cache based on STM
license:            MIT
license-file:       LICENSE
tested-with:        GHC == 8.8.1, GHC == 8.6.5, GHC == 8.4.4, GHC == 8.2.2
build-type:         Simple
extra-source-files: README.md
                    ChangeLog.md

common base                 { build-depends: base                 >= 4.7        && < 5      }

common containers           { build-depends: containers           >= 0.5        && < 0.7    }
common hedgehog             { build-depends: hedgehog             >= 0.5        && < 1.1    }
common hspec                { build-depends: hspec                >= 2.4        && < 2.8    }
common hw-hspec-hedgehog    { build-depends: hw-hspec-hedgehog    >= 0.1        && < 0.2    }
common stm                  { build-depends: stm                  >= 2.5        && < 3      }

common arbor-lru-cache
  build-depends:      arbor-lru-cache

common config
  default-language:   Haskell2010
  ghc-options:        -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints

source-repository head
  type: git
  location: https://github.com/arbor/arbor-lru-cache

library
  import:             base, config
                    , containers
                    , stm
  exposed-modules:    Arbor.LruCache
                      Arbor.LruCache.Internal.PriorityQueue
                      Arbor.LruCache.Type
  other-modules:
  hs-source-dirs:     src


test-suite arbor-lru-cache-test
  import:             base, config
                    , arbor-lru-cache
                    , containers
                    , hedgehog
                    , hspec
                    , hw-hspec-hedgehog
                    , stm
  type:               exitcode-stdio-1.0
  main-is:            Spec.hs
  build-tool-depends: hspec-discover:hspec-discover
  other-modules:      Arbor.LruCache.Internal.PriorityQueueSpec
                      Arbor.LruCache.LruCacheSpec
  hs-source-dirs:     test
  ghc-options:        -threaded -rtsopts -with-rtsopts=-N