filediff-0.1.0.7: 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 "base" FilePath is the file chose state is being compared against, and the "comp" FilePath is the file being compared (the "later" of the two).

Constructors

Filediff 

data Diff Source

A data type for differences between directories. filediffs stores Filediffs whose filepaths are relative to directories being diffed.

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) 

isDel :: FileChange -> Bool Source

Whether a FileChange is a deletion or not.

isMod :: FileChange -> Bool Source

Whether a FileChange is a modification or not.

isAdd :: FileChange -> Bool Source

Whether a FileChange is a addition or not.

type Line = Text Source

Data type for a line.

type Error = String Source

Basic error type.