File tree Expand file tree Collapse file tree 5 files changed +1004
-547
lines changed Expand file tree Collapse file tree 5 files changed +1004
-547
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ init: ## Set up git hooks and ignored revisions
29
29
30
30
.PHONY : style
31
31
style : # # Run the code styler
32
- @fourmolu -q -i Cabal Cabal-syntax cabal-install
32
+ @fourmolu -q -i Cabal Cabal-syntax cabal-install cabal-validate
33
33
34
34
.PHONY : style-modified
35
35
style-modified : # # Run the code styler on modified files
36
- @git ls-files --modified Cabal Cabal-syntax cabal-install \
36
+ @git ls-files --modified Cabal Cabal-syntax cabal-install cabal-validate \
37
37
| grep ' .hs$$' | xargs -P $(PROCS ) -I {} fourmolu -q -i {}
38
38
39
39
.PHONY : style-commit
40
40
style-commit : # # Run the code styler on the previous commit
41
- @git diff --name-only HEAD $(COMMIT ) Cabal Cabal-syntax cabal-install \
41
+ @git diff --name-only HEAD $(COMMIT ) Cabal Cabal-syntax cabal-install cabal-validate \
42
42
| grep ' .hs$$' | xargs -P $(PROCS ) -I {} fourmolu -q -i {}
43
43
44
44
# source generation: SPDX
Original file line number Diff line number Diff line change
1
+ cabal-version : 3.0
2
+ name : cabal-validate
3
+ version : 1.0.0
4
+ copyright : 2024-2024, Cabal Development Team (see AUTHORS file)
5
+ license : BSD-3-Clause
6
+ author : Cabal Development Team <
[email protected] >
7
+ synopsis : An internal tool for building and testing the Cabal package manager
8
+ build-type : Simple
9
+
10
+ common warnings
11
+ ghc-options : -Wall
12
+
13
+ executable cabal-validate
14
+ import : warnings
15
+ default-language : Haskell2010
16
+ default-extensions :
17
+ OverloadedStrings
18
+ , NoFieldSelectors
19
+ , DuplicateRecordFields
20
+ , OverloadedRecordDot
21
+ , TypeApplications
22
+ ghc-options : -O -threaded -rtsopts -with-rtsopts=-N
23
+
24
+ if impl(ghc < 9.6 )
25
+ -- Pattern exhaustiveness checker is not as good, misses a case.
26
+ ghc-options : -Wno-incomplete-patterns
27
+
28
+ main-is : Main.hs
29
+ hs-source-dirs : main
30
+
31
+ build-depends :
32
+ base >= 4 && < 5
33
+ , ansi-terminal >= 1 && < 2
34
+ , turtle >= 1 && < 2
35
+ , optparse-applicative >= 0.18 && < 1
36
+ , containers >= 0.6 && < 1
37
+ , directory >= 1.0 && < 2
38
+ , text >= 2 && < 3
39
+ , terminal-size >= 0.3 && < 1
40
+ , time >= 1 && < 2
You can’t perform that action at this time.
0 commit comments