File: hashed-storage.cabal

package info (click to toggle)
haskell-hashed-storage 0.5.10-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 328 kB
  • ctags: 73
  • sloc: haskell: 2,162; ansic: 799; makefile: 3
file content (106 lines) | stat: -rw-r--r-- 2,769 bytes parent folder | download
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
name:          hashed-storage
version:       0.5.10
synopsis:      Hashed file storage support code.

description:   Support code for reading and manipulating hashed file storage
               (where each file and directory is associated with a
               cryptographic hash, for corruption-resistant storage and fast
               comparisons).
               .
               The supported storage formats include darcs hashed pristine, a
               plain filesystem tree and an indexed plain tree (where the index
               maintains hashes of the plain files and directories).

license:       BSD3
license-file:  LICENSE
copyright:     2009 Petr Rockai <me@mornfall.net>
author:        Petr Rockai <me@mornfall.net>
maintainer:    Petr Rockai <me@mornfall.net>
category:      System
build-type:    Custom
cabal-version: >= 1.6

extra-source-files: Bundled/sha2.h, NEWS, testdata.zip

flag test
    default: False

flag diff
    default: False

flag hpc
    default: False

library
    if impl(ghc >= 6.8)
      ghc-options: -fwarn-tabs

    ghc-options:   -Wall -O2
    ghc-prof-options: -prof -auto-all -O2
    if flag(hpc)
      ghc-prof-options: -fhpc


    exposed-modules:
        Storage.Hashed
        Storage.Hashed.AnchoredPath
        Storage.Hashed.Index
        Storage.Hashed.Monad
        Storage.Hashed.Tree
        Storage.Hashed.Hash
        Storage.Hashed.Packed

        Storage.Hashed.Plain
        Storage.Hashed.Darcs

    if flag(diff)
      exposed-modules:
        Storage.Hashed.Diff
      build-depends: lcs

    other-modules:
        Bundled.Posix
        Bundled.SHA256
        Storage.Hashed.Utils

    build-depends: base >= 4 && < 5,
                   containers,
                   mtl,
                   directory,
                   filepath,
                   bytestring,
                   extensible-exceptions,
                   dataenc,
                   binary,
                   zlib,
                   mmap >= 0.5 && < 0.6

    c-sources: Bundled/sha2.c

    extensions: PatternSignatures, NoMonomorphismRestriction

executable hashed-storage-test
    if impl(ghc >= 6.8)
      ghc-options: -fwarn-tabs
    ghc-options:   -Wall -O2
    ghc-prof-options: -prof -auto-all -O2

    if flag(hpc)
      ghc-prof-options: -fhpc

    main-is: test.hs
    other-modules: Bundled.Posix
                   Storage.Hashed.Test
    c-sources: Bundled/sha2.c

    if flag(test)
      build-depends: test-framework,
                     test-framework-hunit,
                     test-framework-quickcheck2,
                     QuickCheck >= 2.3, HUnit, process >= 1.0.1, zip-archive
    else
      buildable: False

source-repository head
  type:     darcs
  location: http://repos.mornfall.net/hashed-storage/