A Foldable
instance is likely to be some sort of container, and so is likely to be a Functor
as well. Indeed, this says
A Foldable
type is also a container (although the class does not technically require Functor
, interesting Foldable
s are all Functor
s).
So is there an example of a Foldable
which is not naturally a Functor
or a Traversable
? (which perhaps the Haskell wiki page missed :-) )
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…