Remove rope-utf16-splay dependency
authorLuke Lau <luke_lau@icloud.com>
Mon, 16 Dec 2019 11:54:52 +0000 (11:54 +0000)
committerLuke Lau <luke_lau@icloud.com>
Mon, 16 Dec 2019 11:54:52 +0000 (11:54 +0000)
lsp-test.cabal
src/Language/Haskell/LSP/Test.hs

index dcb6793f5a4c06f5ed06769178919a1952bc3d85..0d436112883ceee892ae03dfd2e51e7522636b2d 100644 (file)
@@ -52,7 +52,6 @@ library
                      , mtl
                      , parser-combinators
                      , process >= 1.6
-                     , rope-utf16-splay
                      , text
                      , transformers
                      , unordered-containers
index bca640f532c712ea051c28ad34f506bf3c501238..3ad7b2f042b34d3a3fd4f18530fbc256ac8e9b7c 100644 (file)
@@ -114,7 +114,6 @@ import System.Environment
 import System.IO
 import System.Directory
 import System.FilePath
-import qualified Data.Rope.UTF16 as Rope
 
 -- | Starts a new session.
 --
@@ -204,7 +203,7 @@ documentContents :: TextDocumentIdentifier -> Session T.Text
 documentContents doc = do
   vfs <- vfs <$> get
   let file = vfsMap vfs Map.! toNormalizedUri (doc ^. uri)
-  return $ Rope.toText $ Language.Haskell.LSP.VFS._text file
+  return (virtualFileText file)
 
 -- | Parses an ApplyEditRequest, checks that it is for the passed document
 -- and returns the new content