Haskell Shell
Permalink
Failed to load latest commit information.
scripts allow osx and stack builds Sep 20, 2015
src/Data Fixed the order of type arguments to correspond to Distributive metho… Aug 5, 2016
tests missing / Sep 20, 2015
.gitignore
.travis.yml Test more GHCs with Travis Aug 5, 2016
.vim.custom Overhauled repository Jan 6, 2013
CHANGELOG.markdown Distributive instances for datatypes from Data.Semigroup Apr 19, 2016
HLint.hs Move HLint annotation that is causing http://bugs.debian.org/cgi-bin/… Oct 14, 2013
LICENSE
README.markdown fix trailing ) [ci skip] Aug 9, 2015
Setup.lhs 0.5-rc1: fix doctest warnings, doctests run on stack, added flags Sep 20, 2015
config Overhauled repository Jan 6, 2013
distributive.cabal Distributive instances for datatypes from Data.Semigroup Apr 19, 2016
stack-7.8.yaml add the missing stack.yaml files Sep 20, 2015
stack.yaml switch to a nightly that exists Jan 16, 2016
travis-cabal-apt-install Overhauled repository Jan 6, 2013

README.markdown

distributive

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

-Edward Kmett