X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=example%2FRecorded.hs;h=5d7cac1b946e0264a51e8aa27e1c4ad060fd888d;hb=bffcf98d971a18b7d8911d526d388b3b8b805daa;hp=63ee8775cad8dc8d9c1aacd715f704427223fc0a;hpb=6930c3cb143fb7aca3f14ea865052ab79c386684;p=lsp-test.git diff --git a/example/Recorded.hs b/example/Recorded.hs index 63ee877..5d7cac1 100644 --- a/example/Recorded.hs +++ b/example/Recorded.hs @@ -1,8 +1,12 @@ import Language.Haskell.LSP.Test.Recorded import System.Directory import System.Environment +import Control.Monad.IO.Class main = do - [client, server, dir] <- (take 3 <$> getArgs) >>= mapM canonicalizePath - passed <- replay client server dir - putStrLn $ if passed then "Passed" else "Failed" + sessionFile <- (head <$> getArgs) >>= canonicalizePath + replay sessionFile $ do + x <- sendNextRequest + liftIO $ print x + y <- sendNextRequest + liftIO $ print y \ No newline at end of file