24 lines
		
	
	
	
		
			522 B
			
		
	
	
	
		
			Haskell
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			522 B
			
		
	
	
	
		
			Haskell
		
	
	
	
	
	
{- 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
 |