Proposal: unify constant functors

Bas van Dijk v.dijk.bas at
Mon Apr 30 11:55:51 CEST 2012

On 30 April 2012 07:33, wren ng thornton <wren at> wrote:
>    (1) add the Foldable and Traversable instances to base, and


>    (2) deprecate transformers:Data.Functor.Constant


I assume you want to re-export Control.Applicative.Constant from
Data.Functor.Constant and deprecate the whole module as in:

module Data.Functor.Constant
  {-# DEPRECATED "Import Constant from Control.Applicative instead" #-}
  ( Constant(..) ) where

import Control.Applicative


More information about the Libraries mailing list