Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit d9f4a29

Browse files
committed
hackage-db.cabal: format file with stylish-cabal
1 parent f74a861 commit d9f4a29

File tree

1 file changed

+60
-81
lines changed

1 file changed

+60
-81
lines changed

hackage-db.cabal

Lines changed: 60 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,81 @@
1-
name: hackage-db
2-
version: 2.0.1
3-
license: BSD3
4-
license-file: LICENSE
5-
author: Peter Simons, Alexander Altman, Ben James
6-
maintainer: Peter Simons <[email protected]>
7-
homepage: https://github.com/peti/hackage-db#readme
8-
bug-reports: https://github.com/peti/hackage-db/issues
9-
category: Distribution
10-
synopsis: Access cabal-install's Hackage database via Data.Map
11-
cabal-version: >= 1.10
12-
build-type: Simple
13-
tested-with: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
14-
, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.3
15-
16-
description:
17-
This library provides convenient access to the local copy of the Hackage
18-
database that "cabal update" creates. Check out
19-
https://github.com/peti/hackage-db/tree/master/example/ for a collection of
20-
simple example programs that demonstrate how to use this code.
1+
name: hackage-db
2+
version: 2.0.1
3+
synopsis: Access cabal-install's Hackage database via Data.Map
4+
description: This library provides convenient access to the local copy of the Hackage
5+
database that \"cabal update\" creates. Check out
6+
https:\//github.com/peti/hackage-db/tree/master/example\/ for a collection
7+
of simple example programs that demonstrate how to use this code.
8+
license: BSD3
9+
license-file: LICENSE
10+
author: Peter Simons, Alexander Altman, Ben James
11+
maintainer: Peter Simons <[email protected]>
12+
tested-with: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2,
13+
GHC == 8.4.4, GHC == 8.6.3
14+
category: Distribution
15+
homepage: https://github.com/peti/hackage-db#readme
16+
bug-reports: https://github.com/peti/hackage-db/issues
17+
build-type: Simple
18+
cabal-version: >= 1.10
2119

2220
source-repository head
23-
type: git
21+
type: git
2422
location: git://github.com/peti/hackage-db.git
2523

2624
flag install-examples
27-
description: Build and install example programs.
28-
default: False
25+
default: False
26+
description: Build and install example programs.
2927

3028
library
31-
hs-source-dirs:
32-
src
33-
other-extensions: DeriveDataTypeable DeriveGeneric
34-
build-depends:
35-
base >= 3 && < 5
36-
, Cabal >2.2
37-
, containers
38-
, aeson
39-
, bytestring
40-
, directory
41-
, filepath
42-
, tar >= 0.4
43-
, time
44-
, utf8-string
45-
exposed-modules:
46-
Distribution.Hackage.DB
47-
Distribution.Hackage.DB.Errors
48-
Distribution.Hackage.DB.MetaData
49-
Distribution.Hackage.DB.Parsed
50-
Distribution.Hackage.DB.Path
51-
Distribution.Hackage.DB.Unparsed
52-
Distribution.Hackage.DB.Utility
53-
other-modules:
54-
Paths_hackage_db
29+
exposed-modules: Distribution.Hackage.DB
30+
Distribution.Hackage.DB.Errors
31+
Distribution.Hackage.DB.MetaData
32+
Distribution.Hackage.DB.Parsed
33+
Distribution.Hackage.DB.Path
34+
Distribution.Hackage.DB.Unparsed
35+
Distribution.Hackage.DB.Utility
36+
other-modules: Paths_hackage_db
37+
hs-source-dirs: src
38+
build-depends: base >= 3 && < 5
39+
, Cabal > 2.2
40+
, aeson
41+
, bytestring
42+
, containers
43+
, directory
44+
, filepath
45+
, tar >= 0.4
46+
, time
47+
, utf8-string
5548
default-language: Haskell2010
49+
other-extensions: DeriveDataTypeable
50+
DeriveGeneric
5651

5752
executable list-known-versions
58-
main-is: list-known-versions.hs
59-
hs-source-dirs: example
53+
main-is: list-known-versions.hs
54+
hs-source-dirs: example
55+
default-language: Haskell2010
56+
6057
if flag(install-examples)
61-
buildable: True
62-
build-depends:
63-
base >= 3 && < 5
64-
, Cabal
65-
, containers
66-
, hackage-db
67-
, bytestring
58+
build-depends: base >= 3 && < 5, Cabal, bytestring, containers, hackage-db
6859
else
69-
buildable: False
70-
default-language: Haskell2010
60+
buildable: False
7161

7262
executable show-meta-data
73-
main-is: show-meta-data.hs
74-
hs-source-dirs:
75-
example
63+
main-is: show-meta-data.hs
64+
hs-source-dirs: example
65+
default-language: Haskell2010
66+
7667
if flag(install-examples)
77-
buildable: True
78-
build-depends:
79-
base >= 3 && < 5
80-
, Cabal
81-
, containers
82-
, hackage-db
83-
, utf8-string
68+
build-depends: base >= 3 && < 5, Cabal, containers, hackage-db, utf8-string
8469
else
85-
buildable: False
86-
default-language: Haskell2010
70+
buildable: False
8771

8872
executable show-package-versions
89-
main-is: show-package-versions.hs
90-
hs-source-dirs:
91-
example
73+
main-is: show-package-versions.hs
74+
hs-source-dirs: example
75+
default-language: Haskell2010
9276
other-extensions: CPP
77+
9378
if flag(install-examples)
94-
buildable: True
95-
build-depends:
96-
base >= 3 && < 5
97-
, Cabal
98-
, containers
99-
, hackage-db
79+
build-depends: base >= 3 && < 5, Cabal, containers, hackage-db
10080
else
101-
buildable: False
102-
default-language: Haskell2010
81+
buildable: False

0 commit comments

Comments
 (0)