git-annex/Types/Messages.hs
2015-04-03 19:56:56 -04:00

24 lines
518 B
Haskell

{- git-annex Messages data types
-
- Copyright 2012 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Types.Messages where
import Data.Default
data OutputType = NormalOutput | QuietOutput | ProgressOutput | JSONOutput
data SideActionBlock = NoBlock | StartBlock | InBlock
deriving (Eq)
data MessageState = MessageState
{ outputType :: OutputType
, sideActionBlock :: SideActionBlock
}
instance Default MessageState
where
def = MessageState NormalOutput NoBlock