filediff-0.1.0.5: Diffing and patching module

Safe HaskellNone
LanguageHaskell2010

Filediff.Types

Description

Data types used by Filediff

Synopsis

Documentation

data Filediff Source

The basic data type for a difference between two files. The FilePath is the "base" file in the base-comp comparison, and is the file to which the patch will be applied. Deletions: a list of indices at which to remove elements. Additions: each line to add comes with the index at which it will eventually reside.

Constructors

Filediff 

data Diff Source

A data type for differences between directories

Constructors

Diff 

Fields

filediffs :: [Filediff]
 

data FileChange Source

The types and sets of changes possible between two files.

Constructors

Del (SeqDiff Line) 
Mod (SeqDiff Line) 
Add (SeqDiff Line) 

type Line = Text Source

Data type for a line

type Error = String Source

Basic error type