monad-supply: Stateful supply monad

[ control, data, library, monad ] [ Propose Tags ] [ Report a vulnerability ]

Support for computations which consume values from a (possibly infinite) supply.


[Skip to Readme]

Modules

[Last Documentation]

  • Control
    • Monad
      • Control.Monad.Supply

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.9
Dependencies base (>=4.7 && <5), mtl (>=2.2.2 && <3.0.0), transformers (>=0.5.6.2 && <0.6.0.0) [details]
License LicenseRef-OtherLicense
Copyright 2011-2020 Geoff Hulette and HaskellWiki contributors
Author Geoff Hulette and HaskellWiki contributors
Maintainer Geoff Hulette <geoff@hulette.net>
Category Control, Data, Monad
Home page https://github.com/ghulette/monad-supply
Bug tracker https://github.com/ghulette/monad-supply/issues
Source repo head: git clone https://github.com/ghulette/monad-supply
Uploaded by GeoffHulette at 2020-09-14T03:35:44Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 6392 total (21 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2020-09-14 [all 3 reports]

Readme for monad-supply-0.9

[back to package description]

logo

Language Hackage

A monad to support computations which consume values from a (possibly infinite) supply.

Disclaimer

Please let me know if there is any issue with the licensing or copyright — I am assuming that, because the code appears on the HaskellWiki pages, it follows the Simple license found there, and that packaging it in this way is not a problem.

About this library

I pulled this more or less verbatim from the HaskellWiki, since I wanted it on Hackage for distribution purposes:

http://www.haskell.org/haskellwiki/New_monads/MonadSupply

Some stuff was added, like a monoid instance and various helper functions.

This library is based on code found on the HaskellWiki, and subject to the
license found there:

  http://www.haskell.org/haskellwiki/HaskellWiki:Copyrights

Permission is hereby granted, free of charge, to any person obtaining this
work (the "Work"), to deal in the Work without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Work, and to permit
persons to whom the Work is furnished to do so.

THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN
THE WORK.