trifecta-1.1: A modern parser combinator library with convenient diagnostics

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Text.Trifecta.Rope

Description

 

Synopsis

Documentation

data Rope Source

Constructors

Rope !Delta !(FingerTree Delta Strand) 

Instances

Show Rope 
Monoid Rope 
Semigroup Rope 
HasDelta Rope 
HasBytes Rope 
Measured Delta Rope 
Reducer ByteString Rope 
Reducer Rope Rope 
Reducer Strand Rope 
Reducer [Char] Rope 

rope :: FingerTree Delta Strand -> RopeSource

strands :: Rope -> FingerTree Delta StrandSource

grabRest :: Delta -> Rope -> r -> (Delta -> ByteString -> r) -> rSource

grab a the contents of a rope from a given location up to a newline

grabLine :: Delta -> Rope -> r -> (Delta -> ByteString -> r) -> rSource

grab a the contents of a rope from a given location up to a newline