Skip to content

Commit a475307

Browse files
Fix cradle and enable last getTypeDefinition test.
For HLS to find definitions in Lib when queried about symbols in Lib2, HLS needs access to a proper cradle.
1 parent d067009 commit a475307

File tree

6 files changed

+7
-38
lines changed

6 files changed

+7
-38
lines changed

test/functional/TypeDefinition.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ tests = testGroup "type definitions" [
2525
$ getTypeDefinitionTest' (30, 17) 27
2626
, testCase "find local definition of type def"
2727
$ getTypeDefinitionTest' (35, 16) 32
28-
, expectFailBecause "This test is broken because it needs a proper cradle." $
29-
testCase "find type-definition of type def in component"
28+
, testCase "find type-definition of type def in component"
3029
$ getTypeDefinitionTest "src/Lib2.hs" (13, 20) "src/Lib.hs" 8
3130
, testCase "find definition of parameterized data type"
3231
$ getTypeDefinitionTest' (40, 19) 37

test/testdata/gototest/Setup.hs

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/testdata/gototest/app/Main.hs

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/testdata/gototest/cabal.project

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/testdata/gototest/gototest.cabal

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/testdata/gototest/hie.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cradle:
2+
direct:
3+
arguments:
4+
- "-i src/"
5+
- "Lib"
6+
- "Lib2"

0 commit comments

Comments
 (0)