summaryrefslogtreecommitdiff
path: root/digest.cabal
blob: b6517532ae4d3163fdaf4335a0152954df791151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name:            digest
version:         0.0.1.7
x-revision: 1
copyright:       (c) 2009 Eugene Kirpichov
license:         BSD2
license-file:    LICENSE
author:          Eugene Kirpichov <ekirpichov@gmail.com>
maintainer:      Eugene Kirpichov <ekirpichov@gmail.com>
category:        Cryptography
synopsis:        Various hashes for bytestrings; CRC32 and Adler32 for now.
description:     This package provides efficient hash implementations for  
                 strict and lazy bytestrings. For now, CRC32 and Adler32 are supported; 
                 they are implemented as FFI bindings to efficient code from zlib.
stability:       provisional
build-type:      Simple
cabal-version:   >= 1.10
tested-with:
    GHC==8.10.7
  , GHC==9.0.2
  , GHC==9.2.5
  , GHC==9.4.3

extra-source-files:
  testing/trivial-reference.c
  testing/trivial.expected
  testing/trivial.hs
  CHANGELOG.md

flag pkg-config
  default:     True
  manual:      True
  description: Use @pkg-config(1)@ to locate @zlib@ library.

source-repository head
  type: git
  location: https://github.com/TeofilC/digest

library
  exposed-modules: Data.Digest.CRC32,
                   Data.Digest.Adler32
  default-extensions: CPP, ForeignFunctionInterface
  default-language: Haskell2010
  build-depends: 
    base < 5
    , bytestring >= 0.9 && < 0.13
  includes:        zlib.h
  ghc-options:     -Wall
  if flag(pkg-config) && !os(windows) && !os(freebsd)
    pkgconfig-depends: zlib
  else
    build-depends: zlib