aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/SelfContained.hs
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-06-23 15:25:46 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-06-23 17:08:05 -0400
commitef5fad2698f3d4c1fe528f138264cc8abb3b2943 (patch)
tree06e85d13670365989157675016596d39eb421b75 /src/Text/Pandoc/SelfContained.hs
parentcab16024fcba447f64b0254f54f3e0b4dd93bb99 (diff)
downloadpandoc-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/SelfContained.hs')
0 files changed, 0 insertions, 0 deletions