2012-04-27 17:23:52 +00:00
|
|
|
{- git-annex Messages data types
|
|
|
|
-
|
|
|
|
- Copyright 2012 Joey Hess <joey@kitenet.net>
|
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Types.Messages where
|
|
|
|
|
|
|
|
data OutputType = NormalOutput | QuietOutput | JSONOutput
|
|
|
|
|
|
|
|
data SideActionBlock = NoBlock | StartBlock | InBlock
|
2012-11-25 21:54:08 +00:00
|
|
|
deriving (Eq)
|
2012-04-27 17:23:52 +00:00
|
|
|
|
|
|
|
data MessageState = MessageState
|
|
|
|
{ outputType :: OutputType
|
|
|
|
, sideActionBlock :: SideActionBlock
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultMessageState :: MessageState
|
2014-09-11 17:36:28 +00:00
|
|
|
defaultMessageState = MessageState NormalOutput NoBlock
|