Remove rope-utf16-splay dependency
[lsp-test.git] / src / Language / Haskell / LSP / Test.hs
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