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 @@ -202,12 +202,19 @@ data TableTrace =
202202 | TraceSupplyUnionCredits UnionCredits
203203 deriving stock Show
204204
205- contramapTraceMerge :: Monad m => Tracer m TableTrace -> Tracer m (AtLevel MergeTrace )
205+ contramapTraceMerge :: forall m . Monad m => Tracer m TableTrace -> Tracer m (AtLevel MergeTrace )
206+ #if MIN_VERSION_contra_tracer(0,2,0)
206207#ifdef DEBUG_TRACES
207208contramapTraceMerge t = TraceMerge `contramap` t
208209#else
209210contramapTraceMerge t = traceMaybe (const Nothing ) t
210211#endif
212+ #else
213+ contramapTraceMerge _t = nullTracer
214+ where
215+ -- See #766
216+ _unused = pure @ m ()
217+ #endif
211218
212219data CursorTrace =
213220 TraceCreateCursor TableId
You can’t perform that action at this time.
0 commit comments