From 0da56e90a0fd4ada9acb01ca9ce769c5924653ec Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Fri, 29 Jun 2018 02:00:00 +0100 Subject: [PATCH] Fix duplicate messages --- src/Language/Haskell/LSP/Test/Parsing.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Language/Haskell/LSP/Test/Parsing.hs b/src/Language/Haskell/LSP/Test/Parsing.hs index db5e443..b28047c 100644 --- a/src/Language/Haskell/LSP/Test/Parsing.hs +++ b/src/Language/Haskell/LSP/Test/Parsing.hs @@ -29,13 +29,13 @@ satisfy pred = do x <- await liftIO $ killThread timeoutThread + if pred x + then do liftIO $ do setSGR [SetColor Foreground Vivid Magenta] putStrLn $ "<-- " ++ B.unpack (encodeMsg x) setSGR [Reset] - - if pred x - then return x + return x else empty -- | Matches if the message is a notification. -- 2.30.2