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

Safe HaskellSafe-Inferred
LanguageHaskell98

Control.OperationalTransformation.List

Documentation

data N Source

Constructors

Z 
S N 

Instances

Eq N 
Show N 

data Vector :: * -> N -> * where Source

Constructors

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

data Operation :: * -> N -> N -> * where Source

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 m Source

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

data TransformedPair :: * -> N -> N -> * where Source

Constructors

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