bytepatch-0.2.0: Patch byte-representable data in a bytestream.
Safe HaskellNone
LanguageHaskell2010

BytePatch.Linear.Gen

Synopsis

Documentation

gen :: [Patch Bytes] -> (Patchscript Bytes, [Error Bytes]) Source #

Process an offset patchscript into a linear patchscript.

Errors are reported, but do not interrupt patch generation. The user could discard patchscripts that errored, or perhaps attempt to recover them. This is what we do for errors:

  • overlapping edit: later edit is skipped & overlapping edits reported

data Error a Source #

Error encountered during linear patchscript generation.

Constructors

ErrorOverlap (Patch a) (Patch a)

Two edits wrote to the same offset.

Instances

Instances details
Eq a => Eq (Error a) Source # 
Instance details

Defined in BytePatch.Linear.Gen

Methods

(==) :: Error a -> Error a -> Bool #

(/=) :: Error a -> Error a -> Bool #

Show a => Show (Error a) Source # 
Instance details

Defined in BytePatch.Linear.Gen

Methods

showsPrec :: Int -> Error a -> ShowS #

show :: Error a -> String #

showList :: [Error a] -> ShowS #