File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/Database/LSMTree/Internal Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ library
613613 , bytestring ^>= 0.11.4.0 || ^>= 0.12.1.0
614614 , cborg ^>= 0.2.10.0
615615 , containers ^>= 0.6 || ^>= 0.7
616- , contra-tracer ^>= 0.2
616+ , contra-tracer ^>= 0.1 || ^ >= 0. 2
617617 , crc32c ^>= 0.2.1
618618 , deepseq ^>= 1.4 || ^>= 1.5
619619 , filepath
Original file line number Diff line number Diff line change @@ -315,12 +315,19 @@ data TableTrace =
315315#endif
316316 deriving stock Show
317317
318- contramapTraceMerge :: Monad m => Tracer m TableTrace -> Tracer m (AtLevel MergeTrace )
318+ contramapTraceMerge :: forall m . Monad m => Tracer m TableTrace -> Tracer m (AtLevel MergeTrace )
319+ #if MIN_VERSION_contra_tracer(0,2,0)
319320#ifdef DEBUG_TRACES
320321contramapTraceMerge t = TraceMerge `contramap` t
321322#else
322323contramapTraceMerge t = traceMaybe (const Nothing ) t
323324#endif
325+ #else
326+ contramapTraceMerge _t = nullTracer
327+ where
328+ -- See #766
329+ _unused = pure @ m ()
330+ #endif
324331
325332-- | Trace messages related to cursors.
326333data CursorTrace =
You can’t perform that action at this time.
0 commit comments