aboutsummaryrefslogtreecommitdiff
path: root/prelude/Prelude.hs
AgeCommit message (Collapse)AuthorFilesLines
2018-03-18New approach to custom Prelude.John MacFarlane1-7/+7
We use no custom Prelude with the latest ghc version (8.4.1), so we don't have problems with ghci. See https://ghc.haskell.org/trac/ghc/ticket/10920 https://www.reddit.com/r/haskell/comments/3ryf2p/how_can_you_use_a_custom_prelude_with_ghci/ This may help with #4464.
2018-03-16Fix Prelude <> export.John MacFarlane1-5/+0
2018-03-16Added custom prelude.John MacFarlane1-0/+22
We need this again because of Monoid/Semigroup.
2018-01-14Remove custom prelude and ghc 7.8 support.John MacFarlane1-16/+0
2018-01-14Revert "Custom prelude - only export <> from Data.Monoid."John MacFarlane1-1/+1
This reverts commit 01ea3edf0f5e83542bdec4f399d22f78e8f690a6.
2018-01-14Custom prelude - only export <> from Data.Monoid.John MacFarlane1-1/+1
2018-01-14Fix import.John MacFarlane1-2/+2
2018-01-14Use base-compat for our custom prelude.John MacFarlane1-15/+5
This should give us more complete coverage of newer base features. See #4255.
2016-09-03Remove unnecessary CPP in custom Prelude.Jesse Rosenthal1-5/+1
We don't have to worry about base < 4.7.
2015-11-09Restored Text.Pandoc.Compat.Monoid.John MacFarlane1-14/+5
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-0/+39
- 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.