Name : ghc-free
| |
Version : 4.12.4
| Vendor : Fedora Project
|
Release : 5.fc26
| Date : 2017-12-04 11:20:18
|
Group : Unspecified
| Source RPM : ghc-free-4.12.4-5.fc26.src.rpm
|
Size : 1.12 MB
| |
Packager : Fedora Project
| |
Summary : Monads for free
|
Description :
Free monads are useful for many tree-like structures and domain specific languages.
If \'f\' is a \'Functor\' then the free \'Monad\' on \'f\' is the type of trees whose nodes are labeled with the constructors of \'f\'. The word \"free\" is used in the sense of \"unrestricted\" rather than \"zero-cost\": \'Free f\' makes no constraining assumptions beyond those given by \'f\' and the definition of \'Monad\'. As used here it is a standard term from the mathematical theory of adjoint functors.
Cofree comonads are dual to free monads. They provide convenient ways to talk about branching streams and rose-trees, and can be used to annotate syntax trees. The cofree comonad can be seen as a stream parameterized by a \'Functor\' that controls its branching factor.
More information on free monads, including examples, can be found in the following blog posts: < http://comonad.com/reader/2008/monads-for-free/> < http://comonad.com/reader/2011/free-monads-for-less/>.
|
RPM found in directory: /packages/linux-pbone/archive.fedoraproject.org/fedora-secondary/updates/26/i386/Packages/g |