summaryrefslogtreecommitdiff
path: root/Types/Messages.hs
blob: c3696c01526e8f74857a45bf8643bf8b0292dc82 (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 | ParallelOutput Int | JSONOutput

data SideActionBlock = NoBlock | StartBlock | InBlock
	deriving (Eq)

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

instance Default MessageState
  where
	def = MessageState NormalOutput NoBlock