aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Compat/Monoid.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-11-09Restored Text.Pandoc.Compat.Monoid.John MacFarlane1-0/+17
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-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.
2013-08-12Text.Pandoc.Compat.Monoid: Small improvements to the (<>) definition.John MacFarlane1-0/+4
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.