regexdot-0.11.1.1: A polymorphic, POSIX, extended regex-engine.

Safe HaskellSafe-Inferred
LanguageHaskell98

RegExDot.Span

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Delimits a data-sequence, via its offset & length, within a wider list.

Synopsis

Types

Type-synonyms

Functions

after :: Span -> DataLength Source

Returns the furthest extent, i.e. the offset just after the end.

empty :: DataLength -> Span Source

An empty instance, located at the specified offset.

join Source

Arguments

:: DataLength

The offset into the list of input-data to use when a null list of spans is received.

-> [Span] 
-> Span 
  • Condenses a list into a single value.
  • Expects a gap-free, sorted list.