Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- gen :: [Patch Bytes] -> (Patchscript Bytes, [Error Bytes])
- data Error a = ErrorOverlap (Patch a) (Patch a)
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
Error encountered during linear patchscript generation.
ErrorOverlap (Patch a) (Patch a) | Two edits wrote to the same offset. |