package ocamldiff

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Types to manipulate differences between two files.

type index =
  1. | One of int
    (*

    one line

    *)
  2. | Many of int * int
    (*

    many lines, we have the first and the last

    *)

Index in a file.

type diff =
  1. | Add of index * index * string
    (*

    for <index>a<index> and the added text

    *)
  2. | Delete of index * index * string
    (*

    for <index>d<index> and the deleted text

    *)
  3. | Change of index * string * index * string
    (*

    for <index>c<index> and the deleted and added texts

    *)

Representation of one difference.

type diffs = diff list

Differences between two files.