Skip to content

Commit cb2dc05

Browse files
committed
Add Cabal Helper cradle and tests
Vastly coped from https://github.com/haskell/haskell-ide-engine/
1 parent 88e8f1c commit cb2dc05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1421
-11
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ tags
2323
TAGS
2424
codex.tags
2525
.vim
26+
27+
28+
## test specific ignores
29+
test/testdata/**/stack.yaml

implicit-hie.cabal

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
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
92
name: implicit-hie
103
version: 0.1.0.0
114
description: Auto generate a stack or cabal multi component hie.yaml file
@@ -16,12 +9,15 @@ bug-reports: https://github.com/Avi-D-coder/implicit-hie/issues
169
author: Avi Dessauer
1710
maintainer: [email protected]
1811
copyright: 2020
19-
license: BSD3
12+
license: BSD-3-Clause
2013
license-file: LICENSE
2114
build-type: Simple
2215
extra-source-files:
2316
README.md
2417
ChangeLog.md
18+
test/testdata/cabal-helper/**/*.hs
19+
test/testdata/cabal-helper/**/*.cabal
20+
test/testdata/cabal-helper/**/*.project
2521

2622
source-repository head
2723
type: git
@@ -30,7 +26,9 @@ source-repository head
3026
library
3127
exposed-modules:
3228
Hie.Cabal.Parser
29+
Hie.CabalHelper
3330
Hie.Locate
31+
Hie.Logger
3432
Hie.Yaml
3533
other-modules:
3634
Paths_implicit_hie
@@ -40,13 +38,19 @@ library
4038
src
4139
ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -fno-warn-unused-imports -fno-warn-unused-binds -fno-warn-name-shadowing -fwarn-redundant-constraints
4240
build-depends:
43-
attoparsec >= 0.13
41+
aeson
42+
, attoparsec >= 0.13
4443
, base >=4.7 && <5
44+
, cabal-helper >=1.1 && <1.2
45+
, containers
4546
, directory >= 1.3
4647
, filepath >= 1.4
4748
, filepattern >= 0.1
49+
, hie-bios >=0.5 && <0.6
50+
, hslogger
4851
, text >= 1.2
4952
, transformers >= 0.5
53+
, process
5054
, yaml >= 0.5
5155
default-language: Haskell2010
5256

@@ -60,7 +64,8 @@ executable gen-hie
6064
app
6165
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
6266
build-depends:
63-
attoparsec
67+
aeson
68+
, attoparsec
6469
, base >=4.7 && <5
6570
, directory
6671
, filepath
@@ -94,3 +99,23 @@ test-suite implicit-hie-test
9499
, transformers
95100
, yaml
96101
default-language: Haskell2010
102+
103+
test-suite unit-tests
104+
type: exitcode-stdio-1.0
105+
main-is: Spec.hs
106+
other-modules:
107+
Paths_implicit_hie, CabalHelperSpec, TestUtils
108+
hs-source-dirs:
109+
test/unit, test/utils
110+
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
111+
build-depends:
112+
aeson
113+
, base
114+
, directory
115+
, filepath
116+
, hie-bios
117+
, hspec
118+
, implicit-hie
119+
, text
120+
, yaml
121+
default-language: Haskell2010

0 commit comments

Comments
 (0)