We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e0223 commit a5bbe67Copy full SHA for a5bbe67
ghcide/src/Development/IDE/Core/Tracing.hs
@@ -67,8 +67,11 @@ withTrace name act
67
act setSpan'
68
| otherwise = act (\_ _ -> pure ())
69
70
-withEventTrace :: (MonadMask m, MonadIO m) =>
71
- String -> ((ByteString -> ByteString -> m ()) -> m a) -> m a
+#if MIN_VERSION_ghc(8,8,0)
+withEventTrace :: (MonadMask m, MonadIO m) => String -> ((ByteString -> ByteString -> m ()) -> m a) -> m a
72
+#else
73
+withEventTrace :: (MonadMask m, MonadIO m) => String -> ((String -> String -> m ()) -> m a) -> m a
74
+#endif
75
withEventTrace name act
76
| userTracingEnabled
77
= withSpan (fromString name) $ \sp -> do
0 commit comments