spanl -package:nonempty-containers

where <math> is the prefix length. spanl, applied to a predicate p and a sequence xs, returns a pair whose first element is the longest prefix (possibly empty) of xs of elements that satisfy p and the second element is the remainder of the sequence.
Similar to span, but performs the test on the entire remaining list instead of just one element. spanList p xs is the same as (takeWhileList p xs, dropWhileList p xs)
The type alias SpanList is used by displaySpan First element is the starting position, second the length and third the annotation at the given range.
The annotations need to all come after the anchor. Make sure this is the case.
Set of HTML elements that are represented as Span with a class equal as the element tag itself.