Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Augments a
Span
, with the specific data concerned.
Synopsis
- type DataSpan a = ([a], Span)
- after :: DataSpan a -> DataLength
- empty :: DataLength -> DataSpan a
- join :: DataLength -> [DataSpan a] -> DataSpan a
Types
Type-synonyms
type DataSpan a = ([a], Span) Source #
- Augment
Span
with a copy of the data to which it refers. - Similar to https://hackage.haskell.org/packages/archive/regex-base/latest/doc/html/Text-Regex-Base-RegexLike.html#t%3AMatchText.
Functions
after :: DataSpan a -> DataLength Source #
Returns the furthest extent, i.e. the offset just after the end.
empty :: DataLength -> DataSpan a Source #
Constructs an empty instance, located at the specified offset.