File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ import Control.Monad.Catch (ExitCase (..), MonadMask)
2424import Control.Monad.Extra (whenJust )
2525import Control.Monad.IO.Unlift
2626import Control.Seq (r0 , seqList , seqTuple2 , using )
27- #if MIN_VERSION_ghc(8,8,0)
2827import Data.ByteString (ByteString )
29- #endif
3028import Data.ByteString.Char8 (pack )
3129import Data.Dynamic (Dynamic )
3230import qualified Data.HashMap.Strict as HMap
@@ -67,8 +65,11 @@ withTrace name act
6765 act setSpan'
6866 | otherwise = act (\ _ _ -> pure () )
6967
70- withEventTrace :: (MonadMask m , MonadIO m ) =>
71- String -> ((ByteString -> ByteString -> m () ) -> m a ) -> m a
68+ #if MIN_VERSION_ghc(8,8,0)
69+ withEventTrace :: (MonadMask m , MonadIO m ) => String -> ((ByteString -> ByteString -> m () ) -> m a ) -> m a
70+ #else
71+ withEventTrace :: (MonadMask m , MonadIO m ) => String -> ((String -> ByteString -> m () ) -> m a ) -> m a
72+ #endif
7273withEventTrace name act
7374 | userTracingEnabled
7475 = withSpan (fromString name) $ \ sp -> do
You can’t perform that action at this time.
0 commit comments