File: zstd.cabal

package info (click to toggle)
haskell-zstd 0.1.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,988 kB
  • sloc: ansic: 26,812; haskell: 1,085; makefile: 4
file content (139 lines) | stat: -rw-r--r-- 3,723 bytes parent folder | download | duplicates (2)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name:                zstd
version:             0.1.3.0
synopsis:            Haskell bindings to the Zstandard compression algorithm
description:
  A fast lossless compression algorithm, targeting real-time
  compression scenarios at zlib-level and better compression ratios.
homepage:            https://github.com/luispedro/hs-zstd
bug-reports:         https://github.com/luispedro/hs-zstd/issues
license:             BSD3
license-file:        LICENSE
author:              Bryan O'Sullivan
maintainer:          luis@luispedro.org
copyright:           (c) 2016-present, Facebook, Inc. All rights reserved.; 2019 Luis Pedro Coelho
category:            Codec
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:
  *.md
  ChangeLog
  PATENTS
  zstd/*.md
  zstd/LICENSE
  zstd/lib/*.h
  zstd/lib/README.md
  zstd/lib/common/*.c
  zstd/lib/common/*.h
  zstd/lib/compress/*.c
  zstd/lib/compress/*.h
  zstd/lib/decompress/*.c
  zstd/lib/decompress/*.h
  zstd/lib/dictBuilder/*.c
  zstd/lib/dictBuilder/*.h

flag standalone
  description: Use a built-in copy of the zstd library
  default:     True

library
  exposed-modules:
    Codec.Compression.Zstd.Base
    Codec.Compression.Zstd.Efficient
    Codec.Compression.Zstd.FFI
    Codec.Compression.Zstd.Streaming
    Codec.Compression.Zstd.Types
    Codec.Compression.Zstd
    Codec.Compression.Zstd.Lazy

  other-modules:
    Codec.Compression.Zstd.Base.Types
    Codec.Compression.Zstd.FFI.Types
    Codec.Compression.Zstd.Internal

  if flag(standalone)
    c-sources:
      zstd/lib/common/debug.c
      zstd/lib/common/entropy_common.c
      zstd/lib/common/error_private.c
      zstd/lib/common/fse_decompress.c
      zstd/lib/common/pool.c
      zstd/lib/common/threading.c
      zstd/lib/common/xxhash.c
      zstd/lib/common/zstd_common.c
      zstd/lib/compress/fse_compress.c
      zstd/lib/compress/hist.c
      zstd/lib/compress/huf_compress.c
      zstd/lib/compress/zstd_compress_literals.c
      zstd/lib/compress/zstd_compress_sequences.c
      zstd/lib/compress/zstd_compress_superblock.c
      zstd/lib/compress/zstd_compress.c
      zstd/lib/compress/zstd_double_fast.c
      zstd/lib/compress/zstd_fast.c
      zstd/lib/compress/zstd_lazy.c
      zstd/lib/compress/zstd_ldm.c
      zstd/lib/compress/zstdmt_compress.c
      zstd/lib/compress/zstd_opt.c
      zstd/lib/decompress/huf_decompress.c
      zstd/lib/decompress/zstd_ddict.c
      zstd/lib/decompress/zstd_decompress_block.c
      zstd/lib/decompress/zstd_decompress.c
      zstd/lib/dictBuilder/cover.c
      zstd/lib/dictBuilder/divsufsort.c
      zstd/lib/dictBuilder/fastcover.c
      zstd/lib/dictBuilder/zdict.c

  if flag(standalone)
    include-dirs:
      zstd/lib
      zstd/lib/common
      zstd/lib/compress

  ghc-options: -Wall
  default-language: Haskell2010
  if !flag(standalone)
    extra-libraries: zstd

  build-depends:
    base >= 4.8 && < 5,
    bytestring >= 0.9,
    deepseq,
    ghc-prim

test-suite tests
  type:           exitcode-stdio-1.0
  default-language: Haskell2010
  hs-source-dirs: tests
  main-is:        Main.hs
  ghc-options:    -Wall -threaded -rtsopts
  other-modules:
    Properties
    QuickCheckUtils

  build-depends:
    QuickCheck >= 2.7,
    base >= 4.8 && < 5,
    bytestring >= 0.9,
    test-framework >= 0.4,
    test-framework-quickcheck2 >= 0.2,
    zstd

benchmark benchmarks
  hs-source-dirs:   benchmarks
  main-is:          Benchmarks.hs

  default-language: Haskell2010
  type:             exitcode-stdio-1.0

  build-depends:
    base,
    bytestring,
    criterion,
    ghc-prim,
    zstd,
    zlib

  ghc-options: -Wall -O2

source-repository head
  type:     git
  location: https://github.com/luispedro/hs-zstd