aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Odt/Arrows
AgeCommit message (Collapse)AuthorFilesLines
2021-03-15Use foldl' instead of foldl everywhere.John MacFarlane1-2/+2
2020-03-15Use implicit Prelude (#6187)Albert Krewinkel2-4/+0
* Use implicit Prelude The previous behavior was introduced as a fix for #4464. It seems that this change alone did not fix the issue, and `stack ghci` and `cabal repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded for these versions. Given this, it seems cleaner to revert to the implicit Prelude. * PandocMonad: remove outdated check for base version Only base versions 4.9 and later are supported, the check for `MIN_VERSION_base(4,8,0)` is therefore unnecessary. * Always use custom prelude Previously, the custom prelude was used only with older GHC versions, as a workaround for problems with ghci. The ghci problems are resolved by replacing package `base` with `base-noprelude`, allowing for consistent use of the custom prelude across all GHC versions.
2020-02-07Apply linter suggestions. Add fix_spacing to lint target in Makefile.John MacFarlane1-2/+2
2019-03-01Remove license boilerplate.John MacFarlane2-36/+0
The haddock module header contains essentially the same information, so the boilerplate is redundant and just one more thing to get out of sync.
2018-11-22Hlint suggestions.John MacFarlane1-2/+0
2018-07-02Spellcheck commentsAlexander Krotov1-2/+2
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane2-2/+4
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-17hlint fixes.John MacFarlane1-4/+4
2018-03-16Removed redundant import.John MacFarlane1-3/+1
2018-01-19hlint code improvements.John MacFarlane1-2/+2
2017-11-02hlintAlexander Krotov1-1/+1
2017-10-27hlint suggestions.John MacFarlane1-3/+3
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane2-13/+13
2017-05-31Odt reader: remove dead codeAlbert Krewinkel2-358/+4
The ODT reader contained a lot of general code useful for working with arrows. However, many of these utils weren't used and are hence removed.
2016-09-02Fix grouping of imports.Jesse Rosenthal2-2/+2
Some source files keep imports in tidy groups. Changing `Text.Pandoc.Compat.Monoid` to `Data.Monoid` could upset that. This restores tidiness.
2016-09-02Remove Compat.MonoidJesse Rosenthal2-2/+2
This was only necessary for GHC versions with base below 4.5 (i.e., ghc < 7.4).
2016-07-14Removed some redundant class constraints.John MacFarlane1-3/+3
2016-07-03Odt reader: Removed redundant Monoid constraints.John MacFarlane1-7/+7
2015-11-09Restored Text.Pandoc.Compat.Monoid.John MacFarlane2-1/+2
Don't use custom prelude for latest ghc. This is a better approach to making 'stack ghci' and 'cabal repl' work. Instead of using NoImplicitPrelude, we only use the custom prelude for older ghc versions. The custom prelude presents a uniform API that matches the current base version's prelude. So, when developing (presumably with latest ghc), we don't use a custom prelude at all and hence have no trouble with ghci. The custom prelude no longer exports (<>): we now want to match the base 4.8 prelude behavior.
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane1-1/+0
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane1-0/+1
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-10-22Changed ยง to % in operators from Odt.Arrows.Utils.John MacFarlane1-20/+19
This prevents problems building haddocks with "C" locale. Closes #2457.
2015-10-14Use custom Prelude to avoid compiler warnings.John MacFarlane2-2/+0
- The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
2015-07-23Added odt readerMarLinn2-0/+750
Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling