summaryrefslogtreecommitdiff
path: root/Types/Messages.hs
blob: 4fcce79f80514c9937ba5318abfecff54e1a6e68 (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 <joey@kitenet.net>
 -
 - Licensed under the GNU GPL version 3 or higher.
 -}

module Types.Messages where

import qualified Data.Set as S

data OutputType = NormalOutput | QuietOutput | JSONOutput

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

data MessageState = MessageState
	{ outputType :: OutputType
	, sideActionBlock :: SideActionBlock
	, fileNotFoundShown :: S.Set FilePath
	}

defaultMessageState :: MessageState
defaultMessageState = MessageState NormalOutput NoBlock S.empty