X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=src%2FLanguage%2FHaskell%2FLSP%2FTest%2FCompat.hs;h=f616331929b7250c9930708652322089c5fc44de;hp=6b018cce5a526e7e111d459d3bd3b68d3d21ed09;hb=a4c1143848809be8aed55403dc3187a256dcbe9b;hpb=fe5448266f5db772dd3f10be432cd56581bbcb40 diff --git a/src/Language/Haskell/LSP/Test/Compat.hs b/src/Language/Haskell/LSP/Test/Compat.hs index 6b018cc..f616331 100644 --- a/src/Language/Haskell/LSP/Test/Compat.hs +++ b/src/Language/Haskell/LSP/Test/Compat.hs @@ -5,9 +5,6 @@ {-# OPTIONS_GHC -Wunused-imports #-} module Language.Haskell.LSP.Test.Compat where -import Control.Concurrent.Chan -import Control.Monad.IO.Class -import Data.Conduit import Data.Maybe #if MIN_VERSION_process(1,6,3) @@ -51,13 +48,3 @@ getProcessID p = fromIntegral . fromJust <$> getProcessID' p #endif _ -> return Nothing #endif - -#if MIN_VERSION_conduit(1,3,0) -chanSource :: MonadIO m => Chan o -> ConduitT i o m b -#else -chanSource :: MonadIO m => Chan o -> ConduitM i o m b -#endif -chanSource c = do - x <- liftIO $ readChan c - yield x - chanSource c