packages feed

xxhash-ffi-0.2.0.0: xxhash-ffi.cabal

name:                xxhash-ffi
version:             0.2.0.0
synopsis:            Bindings to the C implementation the xxHash algorithm
description:         Bindings to the C implementation the xxHash algorithm. xxHash provides 32-bit and 64-bit extremely fast non-cryptographic hash functions.
homepage:            https://github.com/haskell-haskey/xxhash-ffi#readme
license:             BSD3
license-file:        LICENSE
author:              Henri Verroken
maintainer:          henriverroken@gmail.com
copyright:           2017 Henri Verroken
category:            Cryptography
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Data.Digest.XXHash.FFI
                       Data.Digest.XXHash.FFI.C
  build-depends:       base >= 4.7 && < 5
                     , bytestring
  ghc-options:         -Wall
  default-language:    Haskell2010
  c-sources:           src-c/xxhash.c
  install-includes:    src-c/xxhash.h
  include-dirs:        src-c
  includes:            xxhash.h

test-suite xxhash-ffi-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  build-depends:       base
                     , xxhash-ffi
                     , QuickCheck
                     , bytestring
                     , hspec
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-language:    Haskell2010

benchmark xxhash-ffi-bench
  type:                exitcode-stdio-1.0
  hs-source-dirs:      bench
  main-is:             Bench.hs
  build-depends:       base
                     , xxhash-ffi
                     , bytestring
                     , criterion
                     , deepseq
                     , digest
                     , hashable
                     , murmur-hash
                     , xxhash
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/hverr/xxhash-ffi