1
- cabal-version : 2.0
2
-
3
- -- This file has been generated from package.yaml by hpack version 0.33.0.
4
- --
5
- -- see: https://github.com/sol/hpack
6
- --
7
- -- hash: b2b829a658e33ea328c725dea732391089d03ffd2a216d413a75d88aefa7c181
8
-
1
+ cabal-version : 2.4
9
2
name : implicit-hie
10
3
version : 0.1.0.0
11
4
description : Auto generate a stack or cabal multi component hie.yaml file
@@ -16,42 +9,69 @@ bug-reports: https://github.com/Avi-D-coder/implicit-hie/issues
16
9
author : Avi Dessauer
17
10
maintainer : avi.the.coder@gmail.com
18
11
copyright : 2020
19
- license : BSD3
12
+ license : BSD-3-Clause
20
13
license-file : LICENSE
21
14
tested-with : GHC== 8.8.3
22
15
build-type : Simple
23
16
extra-source-files :
24
17
README.md
25
18
ChangeLog.md
19
+ test/testdata/cabal-helper/**/*.hs
20
+ test/testdata/cabal-helper/**/*.cabal
21
+ test/testdata/cabal-helper/**/*.project
26
22
27
23
source-repository head
28
24
type : git
29
25
location : https://github.com/Avi-D-coder/implicit-hie
30
26
27
+ flag cabalHelper
28
+ Description : Enable Cabal-Helper dependencies
29
+ Default : True
30
+ Manual : True
31
+
32
+ common cabal-helper
33
+ if flag(cabalHelper)
34
+ cpp-options : -DCABAL_HELPER_SUPPORT
35
+
31
36
library
37
+ import : cabal-helper
32
38
exposed-modules :
33
39
Hie.Cabal.Parser
34
40
Hie.Locate
41
+ Hie.Logger
35
42
Hie.Yaml
43
+
36
44
other-modules :
37
45
Paths_implicit_hie
38
46
autogen-modules :
39
47
Paths_implicit_hie
40
48
hs-source-dirs :
41
49
src
42
- ghc-options : -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -fno-warn- unused-imports -fno-warn- unused-binds -fno-warn -name-shadowing -fwarn-redundant-constraints
50
+ ghc-options : -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -fwarn- unused-imports -fwarn- unused-binds -fwarn -name-shadowing -fwarn-redundant-constraints
43
51
build-depends :
44
52
attoparsec >= 0.13
45
53
, base >= 4.7 && < 5
46
54
, directory >= 1.3
47
55
, filepath >= 1.4
48
56
, filepattern >= 0.1
57
+ , hie-bios >= 0.5 && < 0.6
58
+ , hslogger
49
59
, text >= 1.2
50
60
, transformers >= 0.5
51
61
, yaml >= 0.5
62
+
63
+ if flag(cabalHelper)
64
+ exposed-modules :
65
+ Hie.CabalHelper
66
+ build-depends :
67
+ cabal-helper >= 1.1 && < 1.2
68
+ , containers
69
+ , process
70
+
52
71
default-language : Haskell2010
53
72
54
73
executable gen-hie
74
+ import : cabal-helper
55
75
main-is : Main.hs
56
76
other-modules :
57
77
Paths_implicit_hie
@@ -67,12 +87,14 @@ executable gen-hie
67
87
, filepath
68
88
, filepattern
69
89
, implicit-hie
90
+ , optparse-applicative
70
91
, text
71
92
, transformers
72
93
, yaml
73
94
default-language : Haskell2010
74
95
75
96
test-suite implicit-hie-test
97
+ import : cabal-helper
76
98
type : exitcode-stdio-1.0
77
99
main-is : Spec.hs
78
100
other-modules :
@@ -95,3 +117,27 @@ test-suite implicit-hie-test
95
117
, transformers
96
118
, yaml
97
119
default-language : Haskell2010
120
+
121
+ test-suite unit-tests
122
+ import : cabal-helper
123
+ type : exitcode-stdio-1.0
124
+ main-is : Spec.hs
125
+ other-modules :
126
+ Paths_implicit_hie, TestUtils
127
+ if flag(cabalHelper)
128
+ other-modules :
129
+ CabalHelperSpec
130
+ hs-source-dirs :
131
+ test/unit, test/utils
132
+ ghc-options : -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -fno-warn-unused-imports -fno-warn-unused-binds -fno-warn-name-shadowing -fwarn-redundant-constraints -threaded -rtsopts -with-rtsopts=-N
133
+ build-depends :
134
+ aeson
135
+ , base
136
+ , directory
137
+ , filepath
138
+ , hie-bios
139
+ , hspec
140
+ , implicit-hie
141
+ , text
142
+ , yaml
143
+ default-language : Haskell2010
0 commit comments