curly-core-0.7.2: The core libraries for the Curly compiler.

Safe HaskellNone
LanguageHaskell2010

Curly.Core.VCS.Diff

Documentation

data Patch k a Source #

Constructors

Patch [k] [(k, a)] 

Instances

(Serializable Bytes k, Serializable Bytes a) => Serializable Bytes (Patch k a) Source # 
(Format Bytes a, Format Bytes k) => Format Bytes (Patch k a) Source # 

Methods

datum :: Parser Bytes (Patch k a) #

(Eq a, Eq k) => Eq (Patch k a) Source # 

Methods

(==) :: Patch k a -> Patch k a -> Bool #

(/=) :: Patch k a -> Patch k a -> Bool #

(Ord a, Ord k) => Ord (Patch k a) Source # 

Methods

compare :: Patch k a -> Patch k a -> Ordering #

(<) :: Patch k a -> Patch k a -> Bool #

(<=) :: Patch k a -> Patch k a -> Bool #

(>) :: Patch k a -> Patch k a -> Bool #

(>=) :: Patch k a -> Patch k a -> Bool #

max :: Patch k a -> Patch k a -> Patch k a #

min :: Patch k a -> Patch k a -> Patch k a #

(Show a, Show k) => Show (Patch k a) Source # 

Methods

showsPrec :: Int -> Patch k a -> ShowS #

show :: Patch k a -> String #

showList :: [Patch k a] -> ShowS #

Generic (Patch k a) Source # 

Associated Types

type Rep (Patch k a) :: * -> * #

Methods

from :: Patch k a -> Rep (Patch k a) x #

to :: Rep (Patch k a) x -> Patch k a #

type Rep (Patch k a) Source # 
type Rep (Patch k a) = D1 (MetaData "Patch" "Curly.Core.VCS.Diff" "curly-core-0.7.2-5Alk9IYXOqrI6xJCLJNJpU" False) (C1 (MetaCons "Patch" PrefixI False) ((:*:) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [k])) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(k, a)]))))

diff :: Ord k => Map k a -> Map k a -> Patch k a Source #

patch :: Ord k => Patch k a -> Map k a -> Map k a Source #