-
Notifications
You must be signed in to change notification settings - Fork 10
/
digest.cabal
48 lines (44 loc) · 1.54 KB
/
digest.cabal
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
name: digest
version: 0.0.1.3
copyright: (c) 2009 Eugene Kirpichov
license: BSD3
license-file: LICENSE
author: Eugene Kirpichov <[email protected]>
maintainer: Eugene Kirpichov <[email protected]>
category: Cryptography
synopsis: Various cryptographic hashes for bytestrings; CRC32 and Adler32 for now.
description: This package provides efficient cryptographic 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
extra-source-files:
testing/trivial-reference.c
testing/trivial.expected
testing/trivial.hs
flag bytestring-in-base
description: In the ghc-6.6 era the bytestring modules were
included in the base package.
default: False
source-repository head
type: git
location: git://github.com/jkff/digest
library
exposed-modules: Data.Digest.CRC32,
Data.Digest.Adler32
default-extensions: CPP, ForeignFunctionInterface
default-language: Haskell2010
build-depends: base < 5
if flag(bytestring-in-base)
-- bytestring was in base-2.0 and 2.1.1
build-depends: base >= 2.0 && < 2.2
cpp-options: -DBYTESTRING_IN_BASE
else
build-depends: base < 2.0 || >= 2.2, bytestring >= 0.9
includes: zlib.h
ghc-options: -Wall
if !os(windows)
extra-libraries: z
else
build-depends: zlib