Skip to content

Commit 5b9c659

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

Some content is hidden

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

44 files changed

+1366
-12
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

hie.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ cradle:
88

99
- path: "test"
1010
component: "implicit-hie:test:implicit-hie-test"
11+
12+
- path: test/utils
13+
component: "implicit-hie:test:unit-tests"
14+
15+
- path: test/unit
16+
component: "implicit-hie:test:unit-tests"

implicit-hie.cabal

Lines changed: 35 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,23 +26,31 @@ 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
3735
autogen-modules:
3836
Paths_implicit_hie
3937
hs-source-dirs:
4038
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
39+
ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -fwarn-unused-imports -fwarn-unused-binds -fwarn-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

@@ -94,3 +98,23 @@ test-suite implicit-hie-test
9498
, transformers
9599
, yaml
96100
default-language: Haskell2010
101+
102+
test-suite unit-tests
103+
type: exitcode-stdio-1.0
104+
main-is: Spec.hs
105+
other-modules:
106+
Paths_implicit_hie, CabalHelperSpec, TestUtils
107+
hs-source-dirs:
108+
test/unit, test/utils
109+
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
110+
build-depends:
111+
aeson
112+
, base
113+
, directory
114+
, filepath
115+
, hie-bios
116+
, hspec
117+
, implicit-hie
118+
, text
119+
, yaml
120+
default-language: Haskell2010

0 commit comments

Comments
 (0)