diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-06-23 15:25:46 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2014-06-23 17:08:05 -0400 |
commit | ef5fad2698f3d4c1fe528f138264cc8abb3b2943 (patch) | |
tree | 06e85d13670365989157675016596d39eb421b75 /src/Text/Pandoc/Readers/MediaWiki.hs | |
parent | cab16024fcba447f64b0254f54f3e0b4dd93bb99 (diff) | |
download | pandoc-ef5fad2698f3d4c1fe528f138264cc8abb3b2943.tar.gz |
Add new typeclass, Reducible
This defines a typeclass `Reducible` which allows us to "reduce" pandoc
Inlines and Blocks, like so
Emph [Strong [Str "foo", Space]] <++> Strong [Emph [Str "bar"]], Str
"baz"] =
[Strong [Emph [Str "foo", Space, Str "bar"], Space, Str "baz"]]
So adjacent formattings and strings are appropriately grouped.
Another set of operators for `(Reducible a) => (Many a)` are also
included.
Diffstat (limited to 'src/Text/Pandoc/Readers/MediaWiki.hs')
0 files changed, 0 insertions, 0 deletions