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,70 @@ 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
- attoparsec >= 0.13
52
+ aeson
53
+ , attoparsec >= 0.13
45
54
, base >= 4.7 && < 5
46
55
, directory >= 1.3
47
56
, filepath >= 1.4
48
57
, filepattern >= 0.1
58
+ , hie-bios >= 0.5 && < 0.6
59
+ , hslogger
49
60
, text >= 1.2
50
61
, transformers >= 0.5
51
62
, yaml >= 0.5
63
+
64
+ if flag(cabalHelper)
65
+ exposed-modules :
66
+ Hie.CabalHelper
67
+ build-depends :
68
+ cabal-helper >= 1.1 && < 1.2
69
+ , containers
70
+ , process
71
+
52
72
default-language : Haskell2010
53
73
54
74
executable gen-hie
75
+ import : cabal-helper
55
76
main-is : Main.hs
56
77
other-modules :
57
78
Paths_implicit_hie
@@ -67,12 +88,14 @@ executable gen-hie
67
88
, filepath
68
89
, filepattern
69
90
, implicit-hie
91
+ , optparse-applicative
70
92
, text
71
93
, transformers
72
94
, yaml
73
95
default-language : Haskell2010
74
96
75
97
test-suite implicit-hie-test
98
+ import : cabal-helper
76
99
type : exitcode-stdio-1.0
77
100
main-is : Spec.hs
78
101
other-modules :
@@ -95,3 +118,27 @@ test-suite implicit-hie-test
95
118
, transformers
96
119
, yaml
97
120
default-language : Haskell2010
121
+
122
+ test-suite unit-tests
123
+ import : cabal-helper
124
+ type : exitcode-stdio-1.0
125
+ main-is : Spec.hs
126
+ other-modules :
127
+ Paths_implicit_hie, TestUtils
128
+ if flag(cabalHelper)
129
+ other-modules :
130
+ CabalHelperSpec
131
+ hs-source-dirs :
132
+ test/unit, test/utils
133
+ 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
134
+ build-depends :
135
+ aeson
136
+ , base
137
+ , directory
138
+ , filepath
139
+ , hie-bios
140
+ , hspec
141
+ , implicit-hie
142
+ , text
143
+ , yaml
144
+ default-language : Haskell2010
0 commit comments