ot-0.1.2.1: Real-time collaborative editing with Operational Transformation

Safe HaskellSafe-Inferred

Control.OperationalTransformation.List

Documentation

data N Source

Constructors

Z 
S N 

Instances

Eq N 
Show N 

data Vector whereSource

Constructors

EmptyV :: Vector a Z 
ConsV :: a -> Vector a n -> Vector a (S n) 

data Operation whereSource

Constructors

EmptyOp :: Operation a Z Z 
RetainOp :: Operation a n m -> Operation a (S n) (S m) 
InsertOp :: a -> Operation a n m -> Operation a n (S m) 
DeleteOp :: Operation a n m -> Operation a (S n) m 

apply :: Operation a n m -> Vector a n -> Vector a mSource

compose :: Operation a n m -> Operation a m k -> Operation a n kSource

data TransformedPair whereSource

Constructors

TP :: Operation a n k -> Operation a m k -> TransformedPair a n m