Haskell Shell
Clone or download
ekmett Merge pull request #47 from obsidiansystems/patch-1
Fix distributive check for transformers-compat
Latest commit 6fe8aef Jun 11, 2018
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
tests Use cabal-doctest Jan 31, 2017
.gitignore Use new .travis.yml from multi-ghc-travis (#42) Dec 29, 2017
.travis.yml Use GHC 8.4.3 on Travis Jun 4, 2018
.vim.custom Overhauled repository Jan 6, 2013
CHANGELOG.markdown Version 0.5.3 Jul 28, 2017
README.markdown fix trailing ) [ci skip] Aug 9, 2015
Setup.lhs Simpler Setup.lhs: try 2 May 12, 2017
Warning.hs Add Warning.hs module May 12, 2017
cabal.project Further Travis tweaks Jan 8, 2018
distributive.cabal Fix distributive check for transformers-compat Jun 11, 2018
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