module Darcs.Patch.SummaryData ( SummDetail(..), SummOp(..) ) where

import Darcs.Prelude

import Darcs.Util.Path ( AnchoredPath )

data SummDetail = SummAddDir AnchoredPath
                | SummRmDir  AnchoredPath
                | SummFile SummOp AnchoredPath Int Int Int
                | SummMv   AnchoredPath AnchoredPath
                | SummNone
  deriving (Eq SummDetail
Eq SummDetail
-> (SummDetail -> SummDetail -> Ordering)
-> (SummDetail -> SummDetail -> Bool)
-> (SummDetail -> SummDetail -> Bool)
-> (SummDetail -> SummDetail -> Bool)
-> (SummDetail -> SummDetail -> Bool)
-> (SummDetail -> SummDetail -> SummDetail)
-> (SummDetail -> SummDetail -> SummDetail)
-> Ord SummDetail
SummDetail -> SummDetail -> Bool
SummDetail -> SummDetail -> Ordering
SummDetail -> SummDetail -> SummDetail
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: SummDetail -> SummDetail -> SummDetail
$cmin :: SummDetail -> SummDetail -> SummDetail
max :: SummDetail -> SummDetail -> SummDetail
$cmax :: SummDetail -> SummDetail -> SummDetail
>= :: SummDetail -> SummDetail -> Bool
$c>= :: SummDetail -> SummDetail -> Bool
> :: SummDetail -> SummDetail -> Bool
$c> :: SummDetail -> SummDetail -> Bool
<= :: SummDetail -> SummDetail -> Bool
$c<= :: SummDetail -> SummDetail -> Bool
< :: SummDetail -> SummDetail -> Bool
$c< :: SummDetail -> SummDetail -> Bool
compare :: SummDetail -> SummDetail -> Ordering
$ccompare :: SummDetail -> SummDetail -> Ordering
$cp1Ord :: Eq SummDetail
Ord, SummDetail -> SummDetail -> Bool
(SummDetail -> SummDetail -> Bool)
-> (SummDetail -> SummDetail -> Bool) -> Eq SummDetail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SummDetail -> SummDetail -> Bool
$c/= :: SummDetail -> SummDetail -> Bool
== :: SummDetail -> SummDetail -> Bool
$c== :: SummDetail -> SummDetail -> Bool
Eq)

data SummOp = SummAdd | SummRm | SummMod deriving (Eq SummOp
Eq SummOp
-> (SummOp -> SummOp -> Ordering)
-> (SummOp -> SummOp -> Bool)
-> (SummOp -> SummOp -> Bool)
-> (SummOp -> SummOp -> Bool)
-> (SummOp -> SummOp -> Bool)
-> (SummOp -> SummOp -> SummOp)
-> (SummOp -> SummOp -> SummOp)
-> Ord SummOp
SummOp -> SummOp -> Bool
SummOp -> SummOp -> Ordering
SummOp -> SummOp -> SummOp
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: SummOp -> SummOp -> SummOp
$cmin :: SummOp -> SummOp -> SummOp
max :: SummOp -> SummOp -> SummOp
$cmax :: SummOp -> SummOp -> SummOp
>= :: SummOp -> SummOp -> Bool
$c>= :: SummOp -> SummOp -> Bool
> :: SummOp -> SummOp -> Bool
$c> :: SummOp -> SummOp -> Bool
<= :: SummOp -> SummOp -> Bool
$c<= :: SummOp -> SummOp -> Bool
< :: SummOp -> SummOp -> Bool
$c< :: SummOp -> SummOp -> Bool
compare :: SummOp -> SummOp -> Ordering
$ccompare :: SummOp -> SummOp -> Ordering
$cp1Ord :: Eq SummOp
Ord, SummOp -> SummOp -> Bool
(SummOp -> SummOp -> Bool)
-> (SummOp -> SummOp -> Bool) -> Eq SummOp
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SummOp -> SummOp -> Bool
$c/= :: SummOp -> SummOp -> Bool
== :: SummOp -> SummOp -> Bool
$c== :: SummOp -> SummOp -> Bool
Eq)