[Haskell-cafe] Const vs Constant types

Paterson, Ross R.Paterson at city.ac.uk
Sat Nov 19 21:52:08 CET 2011


Denis Moskvin writes:
> Is there any rationale for coexistence of

> newtype Const a b = Const { getConst :: a }

> from Control.Applicative and

> newtype Constant a b = Constant { getConstant :: a }

> from Data.Functor.Constant (transformers package)?

It was an accident.  I think it would make sense to either move Constant to Control.Applicative or hide Const.


More information about the Haskell-Cafe mailing list