2012-04-27 17:23:52 +00:00
|
|
|
{- 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
|
|
|
|
|
2012-11-25 21:54:08 +00:00
|
|
|
import qualified Data.Set as S
|
|
|
|
|
2012-04-27 17:23:52 +00:00
|
|
|
data OutputType = NormalOutput | QuietOutput | JSONOutput
|
|
|
|
|
|
|
|
data SideActionBlock = NoBlock | StartBlock | InBlock
|
2012-11-25 21:54:08 +00:00
|
|
|
deriving (Eq)
|
2012-04-27 17:23:52 +00:00
|
|
|
|
|
|
|
data MessageState = MessageState
|
|
|
|
{ outputType :: OutputType
|
|
|
|
, sideActionBlock :: SideActionBlock
|
2012-11-25 21:54:08 +00:00
|
|
|
, fileNotFoundShown :: S.Set FilePath
|
2012-04-27 17:23:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultMessageState :: MessageState
|
2012-11-25 21:54:08 +00:00
|
|
|
defaultMessageState = MessageState NormalOutput NoBlock S.empty
|