projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to haskell-lsp-0.7
[opengl.git]
/
test
/
Test.hs
diff --git
a/test/Test.hs
b/test/Test.hs
index 88c6852eadd43d885bc5cef1217bee08cffe18e8..5e7e0752032dca5df0da393c7a1a42f27cb1608f 100644
(file)
--- a/
test/Test.hs
+++ b/
test/Test.hs
@@
-18,7
+18,8
@@
import GHC.Generics
import Language.Haskell.LSP.Messages
import Language.Haskell.LSP.Test
import Language.Haskell.LSP.Test.Replay
import Language.Haskell.LSP.Messages
import Language.Haskell.LSP.Test
import Language.Haskell.LSP.Test.Replay
-import Language.Haskell.LSP.Types as LSP hiding (capabilities, message)
+import Language.Haskell.LSP.Types as LSP hiding (capabilities, message, rename, applyEdit)
+import Language.Haskell.LSP.Types.Capabilities as LSP
import System.Timeout
{-# ANN module ("HLint: ignore Reduce duplication" :: String) #-}
import System.Timeout
{-# ANN module ("HLint: ignore Reduce duplication" :: String) #-}
@@
-206,7
+207,7
@@
main = hspec $ do
liftIO $ do
mainSymbol ^. name `shouldBe` "main"
mainSymbol ^. kind `shouldBe` SkFunction
liftIO $ do
mainSymbol ^. name `shouldBe` "main"
mainSymbol ^. kind `shouldBe` SkFunction
- mainSymbol ^. range `shouldBe` Range (Position 3 0) (Position
3 4
)
+ mainSymbol ^. range `shouldBe` Range (Position 3 0) (Position
5 30
)
describe "applyEdit" $ do
it "increments the version" $ runSession "hie --lsp" docChangesCaps "test/data/renamePass" $ do
describe "applyEdit" $ do
it "increments the version" $ runSession "hie --lsp" docChangesCaps "test/data/renamePass" $ do