File tree 1 file changed +5
-4
lines changed
ghcide/src/Development/IDE/Core
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)
24
24
import Control.Monad.Extra (whenJust )
25
25
import Control.Monad.IO.Unlift
26
26
import Control.Seq (r0 , seqList , seqTuple2 , using )
27
- #if MIN_VERSION_ghc(8,8,0)
28
27
import Data.ByteString (ByteString )
29
- #endif
30
28
import Data.ByteString.Char8 (pack )
31
29
import Data.Dynamic (Dynamic )
32
30
import qualified Data.HashMap.Strict as HMap
@@ -67,8 +65,11 @@ withTrace name act
67
65
act setSpan'
68
66
| otherwise = act (\ _ _ -> pure () )
69
67
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
72
73
withEventTrace name act
73
74
| userTracingEnabled
74
75
= withSpan (fromString name) $ \ sp -> do
You can’t perform that action at this time.
0 commit comments