diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-21 19:15:46 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-21 19:15:59 +0200 |
commit | 1f7f46f94a95ab7fc6f3101da7c02529e1964f24 (patch) | |
tree | 098339660b344ce71a8f7ca289902d10ca82b2b0 /testsuite/tests | |
parent | 5ed12810e0972b1e0d408fe1355805746c4614f9 (diff) | |
download | haskell-1f7f46f94a95ab7fc6f3101da7c02529e1964f24.tar.gz |
Generalise Data.List/Control.Monad to Foldable/Traversable
This flips the switch and replaces the entities in
`Data.List`/`Control.Monad` conflicting with
`Data.{Foldable,Traversable}` with re-exports of the more general
versions.
As of this commit, the code below (which is also added as a test-case)
compiles w/o error.
module XPrelude (module X) where
import Control.Monad as X
import Data.Foldable as X
import Data.List as X
import Data.Monoid as X
import Data.Traversable as X
import Prelude as X
This addresses #9568
Reviewed By: ekmett, austin
Differential Revision: https://phabricator.haskell.org/D235
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/rename/should_compile/T1972.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/rename/should_compile/T1972.stderr b/testsuite/tests/rename/should_compile/T1972.stderr index 38f013e222..0f450fc023 100644 --- a/testsuite/tests/rename/should_compile/T1972.stderr +++ b/testsuite/tests/rename/should_compile/T1972.stderr @@ -7,6 +7,6 @@ T1972.hs:14:3: Warning: This binding for ‘mapAccumL’ shadows the existing bindings defined at T1972.hs:16:1 imported from ‘Data.List’ at T1972.hs:7:1-16 - (and originally defined in ‘Data.OldList’) + (and originally defined in ‘Data.Traversable’) T1972.hs:20:10: Warning: Defined but not used: ‘c’ |