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