File: tar.cabal

package info (click to toggle)
haskell-tar 0.5.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 256 kB
  • sloc: haskell: 2,340; makefile: 4
file content (182 lines) | stat: -rw-r--r-- 5,278 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
cabal-version:   1.12
name:            tar
version:         0.5.1.1
x-revision: 10

license:         BSD3
license-file:    LICENSE
author:          Duncan Coutts <duncan@community.haskell.org>
                 Bjorn Bringert <bjorn@bringert.net>
maintainer:      Duncan Coutts <duncan@community.haskell.org>
bug-reports:     https://github.com/haskell/tar/issues
copyright:       2007 Bjorn Bringert <bjorn@bringert.net>
                 2008-2016 Duncan Coutts <duncan@community.haskell.org>
category:        Codec
synopsis:        Reading, writing and manipulating ".tar" archive files.
description:     This library is for working with \"@.tar@\" archive files. It
                 can read and write a range of common variations of archive
                 format including V7, POSIX USTAR and GNU formats.
                 .
                 It provides support for packing and unpacking portable
                 archives. This makes it suitable for distribution but not
                 backup because details like file ownership and exact
                 permissions are not preserved.
                 .
                 It also provides features for random access to archive
                 content using an index.
build-type:      Simple
extra-source-files: changelog.md
tested-with:     GHC==7.0.4, GHC==7.2.2, GHC==7.4.2, GHC==7.6.3,
                 GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4,
                 GHC==8.6.5, GHC==8.8.3, GHC==8.10.4, GHC==9.0.1

source-repository head
  type: git
  location: https://github.com/haskell/tar.git

flag old-time
  default: False

flag old-bytestring
  default: False

library

  build-depends: base       >= 4 && < 4.20,
                 filepath             < 1.6,
                 array                < 0.6,
                 containers >= 0.2 && < 0.8,
                 deepseq    >= 1.1 && < 1.6

  if flag(old-time)
    build-depends: directory < 1.2, old-time < 1.2
  else
    build-depends: directory >= 1.2 && < 1.4, time < 1.13

  if flag(old-bytestring)
    build-depends: bytestring-builder >= 0.10.4.0.2 && < 0.11, bytestring == 0.9.*
  else
    build-depends: bytestring >= 0.10 && < 0.13

  if !impl(ghc >= 8.0)
    build-depends: semigroups >= 0.18 && < 0.20

  exposed-modules:
    Codec.Archive.Tar
    Codec.Archive.Tar.Entry
    Codec.Archive.Tar.Check
    Codec.Archive.Tar.Index

  other-modules:
    Codec.Archive.Tar.Types
    Codec.Archive.Tar.Read
    Codec.Archive.Tar.Write
    Codec.Archive.Tar.Pack
    Codec.Archive.Tar.Unpack
    Codec.Archive.Tar.Index.StringTable
    Codec.Archive.Tar.Index.IntTrie

  default-language: Haskell2010
  -- Previously, the package used GHC's default Haskell mode which implies
  -- NDI; so we keep it transitionally enabled here until we've reviewed the
  -- code to make sure there isn't any code relies on NDI and keeps compiling
  -- albeit with different semantics even without NDI
  default-extensions: NondecreasingIndentation

  other-extensions:
    BangPatterns
    CPP
    DeriveDataTypeable
    GeneralizedNewtypeDeriving
    PatternGuards
    ScopedTypeVariables


  ghc-options: -Wall -fno-warn-unused-imports

test-suite properties
  type:          exitcode-stdio-1.0
  build-depends: base,
                 filepath,
                 array,
                 containers,
                 deepseq,
                 bytestring-handle,
                 QuickCheck       == 2.*,
                 tasty            >= 0.10 && <1.6,
                 tasty-quickcheck >= 0.8  && <0.11

  if flag(old-time)
    build-depends: directory < 1.2, old-time
  else
    build-depends: directory >= 1.2, time

  if flag(old-bytestring)
    build-depends: bytestring-builder, bytestring >= 0.9 && <0.10
  else
    build-depends: bytestring >= 0.10

  if !impl(ghc >= 8.0)
    build-depends: semigroups >= 0.18 && <0.20

  default-language: Haskell2010

  hs-source-dirs: . test

  main-is: test/Properties.hs
  cpp-options: -DTESTS

  other-modules:
    Codec.Archive.Tar.Index
    Codec.Archive.Tar.Index.StringTable
    Codec.Archive.Tar.Index.IntTrie

  -- shared w/ lib:tar component
  other-modules:
    Codec.Archive.Tar
    Codec.Archive.Tar.Check
    Codec.Archive.Tar.Pack
    Codec.Archive.Tar.Read
    Codec.Archive.Tar.Types
    Codec.Archive.Tar.Unpack
    Codec.Archive.Tar.Write

  other-extensions:
    CPP
    BangPatterns,
    DeriveDataTypeable
    ScopedTypeVariables

  ghc-options: -fno-ignore-asserts

benchmark bench
  type:          exitcode-stdio-1.0
  hs-source-dirs: . bench
  main-is:       bench/Main.hs
  build-depends: base,
                 bytestring >= 0.10,
                 filepath,
                 directory >= 1.2,
                 array,
                 containers,
                 deepseq,
                 time,
                 criterion >= 1.0

  if !impl(ghc >= 8.0)
    build-depends: semigroups >= 0.18 && <0.20

  default-language: Haskell2010

  -- shared w/ lib:tar component
  other-modules:
    Codec.Archive.Tar
    Codec.Archive.Tar.Check
    Codec.Archive.Tar.Index
    Codec.Archive.Tar.Index.IntTrie
    Codec.Archive.Tar.Index.StringTable
    Codec.Archive.Tar.Pack
    Codec.Archive.Tar.Read
    Codec.Archive.Tar.Types
    Codec.Archive.Tar.Unpack
    Codec.Archive.Tar.Write