A map from source positions to a pair of sequences: first, elements that start at that position; then, elements that end at that position.
Modulecommonmark-0.2.6Haskell2010
Commonmark.SourceMap
- 2 types
- 2 values
- Packagecommonmark-0.2.6
- Exports4
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceSourceMap.hs
Use this when you want to extract a source map as well as the parsed content.
Constructors
Instances11Monad, Functor, Applicative, Show, Semigroup, Monoid, …
Monad WithSourceMapDefined in commonmark-0.2.6 · Commonmark.SourceMapFunctor WithSourceMapDefined in commonmark-0.2.6 · Commonmark.SourceMapApplicative WithSourceMapDefined in commonmark-0.2.6 · Commonmark.SourceMap(Show a, Monoid a) => Show (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMap(Show a, Semigroup a) => Semigroup (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMap(Show a, Semigroup a, Monoid a) => Monoid (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMapHasAttributes (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMap(IsInline a, Semigroup a) => IsInline (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMap(Rangeable a, Monoid a, Show a) => Rangeable (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMapToPlainText a => ToPlainText (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMap(IsBlock b a, IsInline b, IsInline (WithSourceMap b), Semigroup a) => IsBlock (WithSourceMap b) (WithSourceMap a)Defined in commonmark-0.2.6 · Commonmark.SourceMap
Extract a parsed value and a source map from a WithSourceMap.