Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Dual Traversable
Haskell Shell
Branch: master
Failed to load latest commit information.
.ghci Overhauled repository
.gitignore Overhauled repository
CHANGELOG.markdown Updated transformers and transformers-compat
HLint.hs Move HLint annotation that is causing…
LICENSE switch to 2-clause BSD
README.markdown fix trailing ) [ci skip]
Setup.lhs Overhauled repository
distributive.cabal Updated transformers and transformers-compat
travis-cabal-apt-install Overhauled repository



Hackage Build Status

This package provides the notion that is categorically dual to Traversable.

A Distributive Functor is one that you can push any functor inside of.

distribute :: (Functor f, Distributive g) => f (g a) -> g (f a)

Compare this with the corresponding Traversable notion, sequenceA.

sequenceA :: (Applicative f, Traversable g) => g (f a) -> f (g a)

This package includes instances for common types, and includes other methods similar to traverse which fuse the use of fmap.

We only require Functor rather than some dual notion to Applicative, because the latter cannot meaningfully exist in Haskell since all comonoids there are trivial.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on

-Edward Kmett

Something went wrong with that request. Please try again.