diff options
author | David Feuer <David.Feuer@gmail.com> | 2014-10-28 15:26:39 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-10-28 15:36:09 +0100 |
commit | 75979f3661ff16ec44528a23005ac1be2b9683fe (patch) | |
tree | ee593bb346641c4f31139a67883762042f9e7653 /libraries/base/Data/Foldable.hs | |
parent | 98ed815f658bdf9cc0299a4818244c3a56c20487 (diff) | |
download | haskell-75979f3661ff16ec44528a23005ac1be2b9683fe.tar.gz |
base: Refactor/clean-up *List modules
This gets rid of all hand-unboxing in `GHC.List` and moves `Foldable`
requirements from `Data.OldList` into `GHC.List` (preparatory work for
addressing #9716). Specifically, this moves the definition of
`maximum`, `minimum`, `foldl'`, `foldl1`, `foldl1'`, `sum`, and
`product` into `GHC.List` (which now needs to import `GHC.Num`)
Make `take`, `drop`, `length`, and `!!` generally saner (see also #9510)
Performance overall seems minimally affected. Some things go up; some
things go down; nothing moves horribly much. The code is much easier to
read.
Differential Revision: https://phabricator.haskell.org/D380
Diffstat (limited to 'libraries/base/Data/Foldable.hs')
-rw-r--r-- | libraries/base/Data/Foldable.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Data/Foldable.hs b/libraries/base/Data/Foldable.hs index d8310ca49e..75460bb2f6 100644 --- a/libraries/base/Data/Foldable.hs +++ b/libraries/base/Data/Foldable.hs @@ -49,7 +49,7 @@ module Data.Foldable ( import Data.Bool import Data.Either import Data.Eq -import qualified Data.OldList as List +import qualified GHC.List as List import Data.Maybe import Data.Monoid import Data.Ord |