Skip to content

Commit 365e3a6

Browse files
committed
restore CPP - I have no idea how it got stripped
1 parent d2b15bc commit 365e3a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ otTracedAction key file success act
101101
return res)
102102
| otherwise = act
103103

104-
104+
#if MIN_GHC_API_VERSION(8,8,0)
105105
otTracedProvider :: MonadUnliftIO m => PluginId -> ByteString -> m a -> m a
106-
107-
108-
106+
#else
107+
otTracedProvider :: MonadUnliftIO m => PluginId -> String -> m a -> m a
108+
#endif
109109
otTracedProvider (PluginId pluginName) provider act = do
110110
runInIO <- askRunInIO
111111
liftIO $ withSpan (provider <> " provider") $ \sp -> do

0 commit comments

Comments
 (0)