packages feed

hw-excess-0.2.0.3: hw-excess.cabal

cabal-version:        2.2

name:                 hw-excess
version:              0.2.0.3
synopsis:             Excess
description:          Please see README.md
category:             Data, Succinct Data Structures, Data Structures
homepage:             http://github.com/haskell-works/hw-excess#readme
bug-reports:          https://github.com/haskell-works/hw-excess/issues
author:               John Ky
maintainer:           newhoggy@gmail.com
copyright:            2016 John Ky
license:              BSD-3-Clause
license-file:         LICENSE
tested-with:          GHC == 8.6.5, GHC == 8.4.4, GHC == 8.2.2
build-type:           Simple
extra-source-files:
  README.md

source-repository head
  type: git
  location: https://github.com/haskell-works/hw-excess

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

common bytestring           { build-depends: bytestring         >= 0.10     && < 0.11   }
common criterion            { build-depends: criterion          >= 1.4      && < 1.6    }
common QuickCheck           { build-depends: QuickCheck         >= 2.10     && < 2.12   }
common hedgehog             { build-depends: hedgehog           >= 0.5      && < 0.7    }
common hspec                { build-depends: hspec              >= 2.3      && < 3      }
common hw-bits              { build-depends: hw-bits            >= 0.4.0.0  && < 0.8    }
common hw-hspec-hedgehog    { build-depends: hw-hspec-hedgehog  >= 0.1.0.4  && < 0.2    }
common hw-prim              { build-depends: hw-prim            >= 0.6.2.24 && < 0.7    }
common hw-rankselect-base   { build-depends: hw-rankselect-base >= 0.2.0.0  && < 0.4    }
common safe                 { build-depends: safe               >= 0.2      && < 0.4    }
common vector               { build-depends: vector             >= 0.12     && < 0.13   }

common config
  default-language:     Haskell2010

library
  import:   base, config
    , hw-bits
    , hw-prim
    , hw-rankselect-base
    , safe
    , vector
  exposed-modules:
    HaskellWorks.Data.Excess
    HaskellWorks.Data.Excess.Excess0
    HaskellWorks.Data.Excess.Excess1
    HaskellWorks.Data.Excess.Internal.Branchless
    HaskellWorks.Data.Excess.Internal.Table
    HaskellWorks.Data.Excess.MinMaxExcess0
    HaskellWorks.Data.Excess.MinMaxExcess1
    HaskellWorks.Data.Excess.Triplet
  autogen-modules:      Paths_hw_excess
  other-modules:        Paths_hw_excess
  hs-source-dirs:       src
  ghc-options:          -Wall -O2 -msse4.2

test-suite hw-excess-test
  import:   base, config
          , QuickCheck
          , hedgehog
          , hspec
          , hw-bits
          , hw-prim
          , hw-hspec-hedgehog
          , vector
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  hs-source-dirs:       test
  ghc-options:          -Wall -threaded -rtsopts -with-rtsopts=-N
  build-tool-depends:   hspec-discover:hspec-discover
  build-depends:        hw-excess
  autogen-modules:      Paths_hw_excess
  other-modules:
    HaskellWorks.Data.Excess.Internal.BranchlessSpec
    HaskellWorks.Data.Excess.MinMaxExcess0Spec
    HaskellWorks.Data.Excess.MinMaxExcess1Spec
    Paths_hw_excess

benchmark bench
  import:   base, config
          , bytestring
          , criterion
          , hw-prim
          , vector
  type:           exitcode-stdio-1.0
  main-is:        Main.hs
  hs-source-dirs: bench
  ghc-options:    -O2 -msse4.2
  build-depends:  hw-excess
  other-modules:  Paths_hw_excess