fix build w/o concurrent-output

This commit is contained in:
Joey Hess 2015-11-06 12:51:25 -04:00
parent cf8076522c
commit 013986b492
Failed to extract signature

View file

@ -24,10 +24,19 @@ data SideActionBlock = NoBlock | StartBlock | InBlock
data MessageState = MessageState
{ outputType :: OutputType
, sideActionBlock :: SideActionBlock
#ifdef WITH_CONCURRENTOUTPUT
, consoleRegion :: Maybe ConsoleRegion
, consoleRegionErrFlag :: Bool
#endif
}
instance Default MessageState
where
def = MessageState NormalOutput NoBlock Nothing False
def = MessageState
{ outputType = NormalOutput
, sideActionBlock = NoBlock
#ifdef WITH_CONCURRENTOUTPUT
, consoleRegion = Nothing
, consoleRegionErrFlag = False
#endif
}