distributive: Distributive functors -- Dual to Traversable

[ bsd3, data-structures, library ] [ Propose Tags ] [ Report a vulnerability ]

Distributive functors -- Dual to Traversable


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
semigroups

You can disable the use of the semigroups package using `-f-semigroups`.

Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.

Enabled
tagged

You can disable the use of the tagged package using `-f-tagged`.

Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.2.0, 0.2.0.1, 0.2.1, 0.2.2, 0.3, 0.3.1, 0.3.2, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.3.1, 0.4.3.2, 0.4.4, 0.5, 0.5.0.1, 0.5.0.2, 0.5.1, 0.5.2, 0.5.3, 0.6, 0.6.1, 0.6.2, 0.6.2.1
Change log CHANGELOG.markdown
Dependencies base (>=4 && <5), base-orphans (>=0.5.2 && <1), ghc-prim, semigroups (>=0.13 && <1), tagged (>=0.7 && <1), transformers (>=0.3 && <0.7) [details]
Tested with ghc ==7.0.4, ghc ==7.2.2, ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.4, ghc ==8.10.3
License BSD-3-Clause
Copyright Copyright (C) 2011-2016 Edward A. Kmett
Author Edward A. Kmett
Maintainer Edward A. Kmett <ekmett@gmail.com>
Revised Revision 1 made by ryanglscott at 2021-08-03T13:24:59Z
Category Data Structures
Home page http://github.com/ekmett/distributive/
Bug tracker http://github.com/ekmett/distributive/issues
Source repo head: git clone git://github.com/ekmett/distributive.git
Uploaded by ryanglscott at 2020-12-30T12:31:56Z
Distributions Arch:0.6.2.1, Debian:0.6.2, Fedora:0.6.2.1, FreeBSD:0.4.4, LTSHaskell:0.6.2.1, NixOS:0.6.2.1, Stackage:0.6.2.1, openSUSE:0.6.2.1
Reverse Dependencies 88 direct, 8544 indirect [details]
Downloads 260549 total (276 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for distributive-0.6.2.1

[back to package description]

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