summaryrefslogtreecommitdiff
path: root/Types/Messages.hs
blob: 2196028e3ab5f2d5c254387f1b927a7eb420933f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{- 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
	deriving (Eq)

data MessageState = MessageState
	{ outputType :: OutputType
	, sideActionBlock :: SideActionBlock
	}

defaultMessageState :: MessageState
defaultMessageState = MessageState NormalOutput NoBlock