fix build w/o concurrent-output
This commit is contained in:
parent
cf8076522c
commit
013986b492
1 changed files with 10 additions and 1 deletions
|
@ -24,10 +24,19 @@ data SideActionBlock = NoBlock | StartBlock | InBlock
|
||||||
data MessageState = MessageState
|
data MessageState = MessageState
|
||||||
{ outputType :: OutputType
|
{ outputType :: OutputType
|
||||||
, sideActionBlock :: SideActionBlock
|
, sideActionBlock :: SideActionBlock
|
||||||
|
#ifdef WITH_CONCURRENTOUTPUT
|
||||||
, consoleRegion :: Maybe ConsoleRegion
|
, consoleRegion :: Maybe ConsoleRegion
|
||||||
, consoleRegionErrFlag :: Bool
|
, consoleRegionErrFlag :: Bool
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
instance Default MessageState
|
instance Default MessageState
|
||||||
where
|
where
|
||||||
def = MessageState NormalOutput NoBlock Nothing False
|
def = MessageState
|
||||||
|
{ outputType = NormalOutput
|
||||||
|
, sideActionBlock = NoBlock
|
||||||
|
#ifdef WITH_CONCURRENTOUTPUT
|
||||||
|
, consoleRegion = Nothing
|
||||||
|
, consoleRegionErrFlag = False
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue