Haskell Shell
Latest commit 24ea95d Aug 3, 2017 @RyanGlScott RyanGlScott committed on GitHub Support doctest-0.13
Failed to load latest commit information.
scripts allow osx and stack builds Sep 20, 2015
src-compat/Data Switch from distribute to collect for generics (#24) Jan 5, 2017
src/Data Switch from distribute to collect for generics (#24) Jan 5, 2017
tests Use cabal-doctest Jan 31, 2017
.gitignore Try out the setup.lhs and doctests.hsc from bytes Jan 13, 2017
.travis.yml Use cabal-install-2.0 in GHC 8.2.1 build Jul 23, 2017
.vim.custom Overhauled repository Jan 6, 2013
HLint.hs Move HLint annotation that is causing http://bugs.debian.org/cgi-bin/… Oct 14, 2013
LICENSE copyright bump [ci skip] Jan 16, 2016
README.markdown fix trailing ) [ci skip] Aug 9, 2015
Setup.lhs Simpler Setup.lhs: try 2 May 12, 2017
config Overhauled repository Jan 6, 2013
distributive.cabal Support doctest-0.13 Aug 3, 2017
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



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