git-annex/Types/Messages.hs

25 lines
522 B
Haskell
Raw Normal View History

{- 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
2015-04-03 23:56:56 +00:00
import Data.Default
data OutputType = NormalOutput | QuietOutput | ParallelOutput Int | JSONOutput
data SideActionBlock = NoBlock | StartBlock | InBlock
deriving (Eq)
data MessageState = MessageState
{ outputType :: OutputType
, sideActionBlock :: SideActionBlock
}
2015-04-03 23:56:56 +00:00
instance Default MessageState
where
def = MessageState NormalOutput NoBlock