diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-08-23 13:30:44 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-12-02 17:05:30 +0000 |
commit | 64f213282bfe51a56ffb5937fa2bc74e4dabea40 (patch) | |
tree | 69ef5542d9c54b94e995828bdc2c99fa96ed2c29 /libraries/base/GHC/OldList.hs | |
parent | d3c7f9be47ac99637ac0ede0759f77da320afaad (diff) | |
download | haskell-wip/revert-data-list.tar.gz |
Revert "Data.List specialization to []"wip/revert-data-list
This reverts commit bddecda1a4c96da21e3f5211743ce5e4c78793a2.
This implements the first step in the plan formulated in #20025 to
improve the communication and migration strategy for the proposed
changes to Data.List.
Requires changing the haddock submodule to update the test output.
Diffstat (limited to 'libraries/base/GHC/OldList.hs')
-rw-r--r-- | libraries/base/GHC/OldList.hs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/base/GHC/OldList.hs b/libraries/base/GHC/OldList.hs new file mode 100644 index 0000000000..cfb7314636 --- /dev/null +++ b/libraries/base/GHC/OldList.hs @@ -0,0 +1,29 @@ +{-# LANGUAGE NoImplicitPrelude #-} +{-# LANGUAGE Safe #-} + +----------------------------------------------------------------------------- +-- | +-- Module : GHC.OldList +-- Copyright : (c) The University of Glasgow 2001 +-- License : BSD-style (see the file libraries/base/LICENSE) +-- +-- Maintainer : libraries@haskell.org +-- 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 +-- <https://wiki.haskell.org/Foldable_Traversable_In_Prelude 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 4.8.0.0 +----------------------------------------------------------------------------- + +module GHC.OldList (module Data.OldList) where + +import Data.OldList |