2012-04-27 17:23:52 +00:00
|
|
|
{- git-annex Messages data types
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2012 Joey Hess <id@joeyh.name>
|
2012-04-27 17:23:52 +00:00
|
|
|
-
|
|
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
|
|
-}
|
|
|
|
|
|
|
|
module Types.Messages where
|
|
|
|
|
2015-04-03 23:56:56 +00:00
|
|
|
import Data.Default
|
|
|
|
|
2015-04-10 19:15:01 +00:00
|
|
|
data OutputType = NormalOutput | QuietOutput | ParallelOutput Int | JSONOutput
|
2012-04-27 17:23:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2015-04-03 23:56:56 +00:00
|
|
|
instance Default MessageState
|
|
|
|
where
|
|
|
|
def = MessageState NormalOutput NoBlock
|