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
Foldabletype is also a container (although the class does not technically requireFunctor, interestingFoldables are allFunctors).
So is there an example of a Foldable which is not naturally a Functor or a Traversable? (which perhaps the Haskell wiki page missed 🙂 )
Here’s a fully parametric example:
Weirdis not aFunctorbecauseaoccurs in a negative position.