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