diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-03-13 22:26:26 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-03-13 23:23:04 -0700 |
commit | 1b37e3b3c0708a5ddd500589edd10ced34bafae5 (patch) | |
tree | aed3e99489156dc79cec4b16e0a29661707fb903 /src/Text/Pandoc/Readers/Odt | |
parent | bcfc3916e9c5cc32b1abe4413e6290edabcf3d3e (diff) | |
download | pandoc-1b37e3b3c0708a5ddd500589edd10ced34bafae5.tar.gz |
Require pandoc-types 1.17.4.
And a few tweaks related to the Semigroups/Monoid change.
Closes #4448.
Diffstat (limited to 'src/Text/Pandoc/Readers/Odt')
-rw-r--r-- | src/Text/Pandoc/Readers/Odt/ContentReader.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Odt/ContentReader.hs b/src/Text/Pandoc/Readers/Odt/ContentReader.hs index 380f16c66..ad0612ec8 100644 --- a/src/Text/Pandoc/Readers/Odt/ContentReader.hs +++ b/src/Text/Pandoc/Readers/Odt/ContentReader.hs @@ -520,7 +520,7 @@ matchingElement :: (Monoid e) matchingElement ns name reader = (ns, name, asResultAccumulator reader) where asResultAccumulator :: (ArrowChoice a, Monoid m) => a m m -> a m (Fallible m) - asResultAccumulator a = liftAsSuccess $ keepingTheValue a >>% (<>) + asResultAccumulator a = liftAsSuccess $ keepingTheValue a >>% mappend -- matchChildContent' :: (Monoid result) @@ -554,7 +554,7 @@ read_plain_text = fst ^&&& read_plain_text' >>% recover read_plain_text' = ( second ( arr extractText ) >>^ spreadChoice >>?! second text ) - >>?% (<>) + >>?% mappend -- extractText :: XML.Content -> Fallible String extractText (XML.Text cData) = succeedWith (XML.cdData cData) @@ -565,7 +565,7 @@ read_text_seq = matchingElement NsText "sequence" $ matchChildContent [] read_plain_text --- specifically. I honor that, although the current implementation of '(<>)' +-- specifically. I honor that, although the current implementation of 'mappend' -- for 'Inlines' in "Text.Pandoc.Builder" will collapse them again. -- The rational is to be prepared for future modifications. read_spaces :: InlineMatcher |