
19 Nov
2011
19 Nov
'11
3:35 p.m.
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)? Denis Moskvin

19 Nov
19 Nov
3:52 p.m.
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.
4933
Age (days ago)
4933
Last active (days ago)
1 comments
2 participants
participants (2)
-
Denis Moskvin
-
Paterson, Ross