Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Dual Traversable
Haskell Shell
branch: master
Failed to load latest commit information.
src/Data
tests Overhauled repository
.ghci Overhauled repository
.gitignore Overhauled repository
.travis.yml Removed hlint from build process
.vim.custom Overhauled repository
CHANGELOG.markdown Updated transformers and transformers-compat
HLint.hs Move HLint annotation that is causing http://bugs.debian.org/cgi-bin/…
LICENSE switch to 2-clause BSD
README.markdown Overhauled repository
Setup.lhs Overhauled repository
config Overhauled repository
distributive.cabal Updated transformers and transformers-compat
travis-cabal-apt-install Overhauled repository

README.markdown

distributive

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 irc.freenode.net.

-Edward Kmett

Something went wrong with that request. Please try again.