packages feed

xxhash-0.0.2: xxhash.cabal

name:           xxhash
version:        0.0.2
license:        BSD3
license-file:   LICENSE
author:         Christian Marie <christian@ponies.io>
maintainer:     Christian Marie
description:    A Haskell implementation of the xxHash algorithm, for fast
                non-cryptographic checksums of ByteStrings.
synopsis:       A Haskell implementation of the xxHash algorithm
category:       Data, Cryptography
build-type:     Simple
cabal-version:  >= 1.10
extra-source-files:
                src/cbits/xxhash.c, src/cbits/xxhash.h
source-repository head
  type: git
  location: https://github.com/christian-marie/xxhash/

library
  build-depends:       base >=4.6 && <5,
                       bytestring,
                       tagged,
                       crypto-api
  ghc-options:
  c-sources:           src/cbits/xxhash.c
  include-dirs:        src/cbits
  hs-source-dirs:      src
  default-language:    Haskell2010
  exposed-modules:     Data.Digest.XXHash
  other-modules:       Data.Digest.CXXHash

test-suite             check
  type:                exitcode-stdio-1.0
  build-depends:       base >=4.6 && <5,
                       bytestring,
                       hspec,
                       QuickCheck,
                       xxhash
  hs-source-dirs:      tests
  main-is:             check.hs
  other-modules:       TestSuite
  default-language:    Haskell2010

benchmark bench
  hs-source-dirs:      bench
  main-is:             Bench.hs
  type:                exitcode-stdio-1.0
  build-depends:       base >=4.6 && <5,
                       bytestring,
                       criterion,
                       digest,
                       murmur-hash,
                       deepseq,
                       hashable,
                       xxhash

  ghc-options:         -rtsopts
  default-language:    Haskell2010