diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-21 23:22:19 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-21 23:28:31 +0200 |
commit | b8f583928fa6cb5371a872fc73080d2002dd87d9 (patch) | |
tree | 9982e3cc06cec45a30e956cffbe4a6151a897cc8 /compiler/deSugar | |
parent | 1f7f46f94a95ab7fc6f3101da7c02529e1964f24 (diff) | |
download | haskell-b8f583928fa6cb5371a872fc73080d2002dd87d9.tar.gz |
Export `Monoid(..)`/`Foldable(..)`/`Traversable(..)` from Prelude
This finally exposes also the methods of these 3 classes in the Prelude
in order to allow to define basic class instances w/o needing imports.
This almost completes the primary goal of #9586
NOTE: `fold`, `foldl'`, `foldr'`, and `toList` are not exposed yet,
as they require upstream fixes for at least `containers` and
`bytestring`, and are not required for defining basic instances.
Reviewed By: ekmett, austin
Differential Revision: https://phabricator.haskell.org/D236
Diffstat (limited to 'compiler/deSugar')
-rw-r--r-- | compiler/deSugar/MatchLit.lhs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/deSugar/MatchLit.lhs b/compiler/deSugar/MatchLit.lhs index f404997c9f..5a247177a3 100644 --- a/compiler/deSugar/MatchLit.lhs +++ b/compiler/deSugar/MatchLit.lhs @@ -46,7 +46,9 @@ import FastString import Control.Monad import Data.Int +#if __GLASGOW_HASKELL__ < 709 import Data.Traversable (traverse) +#endif import Data.Word \end{code} |