Commit e76f8664 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺
Browse files

Add `GHC.OldList` legacy module

This module provides access the list-specialised versions for legacy purposes
(such as implementing Haskell2010-ish preludes). This module basically
re-exports the hidden `Data.OldList` module (but in the less controversial `GHC.*`
namespace, which signals less committment to keep this module around).

This is legacy module is mostly for GHC 7.10's sake. What becomes long-term
of `GHC.OldList` can be decided unhurriedly during the GHC 7.12 development

Reviewed By: austin

Differential Revision:
parent 7a2d65a4
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE Safe #-}
-- |
-- Module : GHC.OldList
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
-- Maintainer :
-- Stability : experimental
-- Portability : portable
-- This legacy module provides access to the list-specialised operations
-- of "Data.List". This module may go away again in future GHC versions and
-- is provided as transitional tool to access some of the list-specialised
-- operations that had to be generalised due to the implementation of the
-- < Foldable/Traversable-in-Prelude Proposal (FTP)>.
-- If the operations needed are available in "GHC.List", it's
-- recommended to avoid importing this module and use "GHC.List"
-- instead for now.
-- @since
module GHC.OldList (module Data.OldList) where
import Data.OldList
......@@ -246,6 +246,7 @@ Library
......@@ -60,6 +60,10 @@
and `Data.Foldable`/`Data.Traversable` no longer lead to conflicting
definitions. (#9586)
* New (unofficial) module `GHC.OldList` containing only list-specialised
versions of the functions from `Data.List` (in other words, `GHC.OldList`
corresponds to `base-`'s `Data.List`)
* Replace the `Control.Monad`-exported functions
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment