20 Nov
2011
20 Nov
'11
4:35 a.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
20 Nov
20 Nov
4:52 a.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.
5361
Age (days ago)
5361
Last active (days ago)
1 comments
2 participants
participants (2)
-
Denis Moskvin -
Paterson, Ross