Skip to content

Commit caf6845

Browse files
committed
Change commented out code to block format
To avoid parse error with -haddock ghc option enabled
1 parent 077ae41 commit caf6845

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

test/functional/TypeDefinition.hs

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,22 @@ tests = testGroup "type definitions" [
7575
(Range (toPos (18, 1)) (toPos (18, 26)))
7676
]
7777

78-
-- TODO Implement
79-
-- , ignoreTestBecause "Broken" $ testCase "find type-definition of type def in component"
80-
-- $ pendingWith "Finding symbols cross module is currently not supported"
81-
-- $ runSession hieCommand fullCaps "test/testdata/gototest"
82-
-- $ do
83-
-- doc <- openDoc "src/Lib2.hs" "haskell"
84-
-- otherDoc <- openDoc "src/Lib.hs" "haskell"
85-
-- closeDoc otherDoc
86-
-- defs <- getTypeDefinitions doc (toPos (13, 20))
87-
-- liftIO $ do
88-
-- fp <- canonicalizePath "test/testdata/gototest/src/Lib.hs"
89-
-- defs
90-
-- `shouldBe` [ Location (filePathToUri fp)
91-
-- (Range (toPos (8, 1)) (toPos (8, 29)))
92-
-- ]
78+
{-- TODO Implement
79+
, ignoreTestBecause "Broken" $ testCase "find type-definition of type def in component"
80+
$ pendingWith "Finding symbols cross module is currently not supported"
81+
$ runSession hieCommand fullCaps "test/testdata/gototest"
82+
$ do
83+
doc <- openDoc "src/Lib2.hs" "haskell"
84+
otherDoc <- openDoc "src/Lib.hs" "haskell"
85+
closeDoc otherDoc
86+
defs <- getTypeDefinitions doc (toPos (13, 20))
87+
liftIO $ do
88+
fp <- canonicalizePath "test/testdata/gototest/src/Lib.hs"
89+
defs
90+
`shouldBe` [ Location (filePathToUri fp)
91+
(Range (toPos (8, 1)) (toPos (8, 29)))
92+
]
93+
--}
9394
, ignoreTestBecause "Broken" $ testCase "find definition of parameterized data type"
9495
$ runSession hieCommand fullCaps "test/testdata/gototest"
9596
$ do
@@ -105,4 +106,4 @@ tests = testGroup "type definitions" [
105106

106107
--NOTE: copied from Haskell.Ide.Engine.ArtifactMap
107108
toPos :: (Int,Int) -> Position
108-
toPos (l,c) = Position (l-1) (c-1)
109+
toPos (l,c) = Position (l-1) (c-1)

0 commit comments

Comments
 (0)