-
Notifications
You must be signed in to change notification settings - Fork 23
/
cabal-fmt.cabal
155 lines (136 loc) · 3.74 KB
/
cabal-fmt.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
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
cabal-version: 2.2
name: cabal-fmt
version: 0.1.12
synopsis: Format .cabal files
category: Development
description:
Format @.cabal@ files preserving the original field ordering, and comments.
.
Tuned for Oleg's preference, but has some knobs still.
license: GPL-3.0-or-later AND BSD-3-Clause
license-file: LICENSE
author: Oleg Grenrus <oleg.grenrus@iki.fi>
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
tested-with:
GHC ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.8
|| ==9.4.8
|| ==9.6.5
|| ==9.8.2
extra-source-files:
Changelog.md
fixtures/*.cabal
fixtures/*.format
source-repository head
type: git
location: https://github.com/phadej/cabal-fmt.git
library version-interval
default-language: Haskell2010
hs-source-dirs: src-interval
build-depends:
, base ^>=4.11.1.0 || ^>=4.12.0.0 || ^>=4.13.0.0 || ^>=4.14.0.0 || ^>=4.15.0.0 || ^>=4.16.0.0 || ^>=4.17.0.0 || ^>=4.18.0.0 || ^>=4.19.0.0
, Cabal-syntax ^>=3.12.0.0
exposed-modules: VersionInterval
library cabal-fmt-internal
default-language: Haskell2010
hs-source-dirs: src
-- GHC boot libraries
build-depends:
, base ^>=4.11.1.0 || ^>=4.12.0.0 || ^>=4.13.0.0 || ^>=4.14.0.0 || ^>=4.15.0.0 || ^>=4.16.0.0 || ^>=4.17.0.0 || ^>=4.18.0.0 || ^>=4.19.0.0
, bytestring ^>=0.10.8.2 || ^>=0.11.3.1 || ^>=0.12.1.0
, Cabal-syntax ^>=3.12.0.0
, containers ^>=0.5.11.0 || ^>=0.6.0.1
, directory ^>=1.3.1.5
, filepath ^>=1.4.2
, mtl ^>=2.2.2 || ^>=2.3.1
, parsec ^>=3.1.13.0
, pretty ^>=1.1.3.6
if impl(ghc <8.10)
build-depends: base-orphans ^>=0.9.1
-- our version interval normalisation
build-depends: version-interval
-- cabal-fmt: expand src
exposed-modules:
CabalFmt
CabalFmt.Comments
CabalFmt.Error
CabalFmt.Fields
CabalFmt.Fields.BuildDepends
CabalFmt.Fields.Extensions
CabalFmt.Fields.Modules
CabalFmt.Fields.SourceFiles
CabalFmt.Fields.TestedWith
CabalFmt.FreeText
CabalFmt.Glob
CabalFmt.Monad
CabalFmt.Options
CabalFmt.Parser
CabalFmt.Pragma
CabalFmt.Prelude
CabalFmt.Refactoring
CabalFmt.Refactoring.ExpandExposedModules
CabalFmt.Refactoring.Fragments
CabalFmt.Refactoring.GlobFiles
CabalFmt.Refactoring.Type
other-extensions:
DeriveFunctor
DerivingStrategies
ExistentialQuantification
FlexibleContexts
GeneralizedNewtypeDeriving
OverloadedStrings
RankNTypes
ScopedTypeVariables
executable cabal-fmt
default-language: Haskell2010
hs-source-dirs: cli
main-is: Main.hs
other-modules: Paths_cabal_fmt
autogen-modules: Paths_cabal_fmt
-- dependencies in library
build-depends:
, base
, bytestring
, cabal-fmt-internal
, directory
, filepath
-- extra dependencies
build-depends: optparse-applicative >=0.14.3.0 && <0.19
test-suite golden
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: tests
main-is: golden.hs
-- dependencies in library
build-depends:
, base
, bytestring
, cabal-fmt-internal
, Cabal-syntax
, containers
-- test dependencies
build-depends:
, filepath
, process
, tasty
, tasty-golden
, temporary
test-suite version-interval-tests
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: tests-interval
main-is: version-interval-tests.hs
build-depends:
, base
, Cabal-syntax
, integer-logarithms ^>=1.0.3.1
, QuickCheck
, tasty
, tasty-hunit
, tasty-quickcheck
, version-interval
-- end file comment