aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Compat
AgeCommit message (Collapse)AuthorFilesLines
2015-10-14More changes to avoid compiler warnings on ghc 7.10.John MacFarlane2-9/+18
* CPP around deprecated `parseTime`. * Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time, now exports Data.Time.
2015-10-14Use custom Prelude to avoid compiler warnings.John MacFarlane1-20/+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.
2014-12-19Added Text.Pandoc.Compat.Locale to assist with transition to time 1.5.John MacFarlane1-0/+9
2014-07-31Except Compat: Updated to export more module functionsMatthew Pickering1-1/+11
2014-07-27Added compatability layer to support directory-1.1Matthew Pickering1-0/+21
2014-07-12Docx Reader: Add a compatibility layer for Except.Jesse Rosenthal1-0/+27
mtl switched from ErrorT to ExceptT, but we're not sure which mtl we'll be dealing with. This should make errors work with both. The main difference (beside the name of the module and the monad transformer) is that Except doesn't require an instance of an Error Typeclass. So we define that for compatability. When we switch to a later mtl, using Control.Monad.Exception, we can just erase the instance declaration, and all should work fine.
2013-08-12Text.Pandoc.Compat.Monoid: Small improvements to the (<>) definition.John MacFarlane1-0/+4
2013-08-08Added Text.Pandoc.Compat.TagSoupEntity.John MacFarlane1-0/+15
This allows pandoc to compile with tagsoup 0.13.x. Thanks to Dirk Ullrich for the patch.
2013-08-08Added Text.Pandoc.Compat.Monoid.John MacFarlane1-0/+16
This allows pandoc to compile with base < 4.5, where Data.Monoid doesn't export `<>`. Thanks to Dirk Ullirch for the patch.