avoid build warnings when building w/o concurrent-output
This commit is contained in:
parent
867fd50637
commit
03b031554f
2 changed files with 9 additions and 3 deletions
|
@ -45,8 +45,8 @@ metered combinemeterupdate key a = case keySize key of
|
|||
maybe noop (\m -> m n) combinemeterupdate
|
||||
liftIO $ clearMeter stdout meter
|
||||
return r
|
||||
go size o@(ConcurrentOutput {})
|
||||
#if WITH_CONCURRENTOUTPUT
|
||||
go size o@(ConcurrentOutput {})
|
||||
| concurrentOutputEnabled o = withProgressRegion $ \r -> do
|
||||
(progress, meter) <- mkmeter size
|
||||
a $ \n -> liftIO $ do
|
||||
|
@ -54,6 +54,8 @@ metered combinemeterupdate key a = case keySize key of
|
|||
s <- renderMeter meter
|
||||
Regions.setConsoleRegion r ("\n" ++ s)
|
||||
maybe noop (\m -> m n) combinemeterupdate
|
||||
#else
|
||||
go _size _o
|
||||
#endif
|
||||
| otherwise = nometer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue