Skip to content

Commit a5bbe67

Browse files
committed
fix 8.6 build
1 parent 95e0223 commit a5bbe67

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ghcide/src/Development/IDE/Core/Tracing.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ withTrace name act
6767
act setSpan'
6868
| otherwise = act (\_ _ -> pure ())
6969

70-
withEventTrace :: (MonadMask m, MonadIO m) =>
71-
String -> ((ByteString -> ByteString -> m ()) -> m a) -> m a
70+
#if MIN_VERSION_ghc(8,8,0)
71+
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
7275
withEventTrace name act
7376
| userTracingEnabled
7477
= withSpan (fromString name) $ \sp -> do

0 commit comments

Comments
 (0)