((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/monad" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.")) (section 2 "Monads" (p "Monads for Scheme") (p (b (link "https://github.com/dleslie/monad-egg/issues" "Please file Issues") " if you find a bug or need help; I will attempt to address them!")) (p "Full documentation, with examples, " (link "https://github.com/dleslie/monad-egg/blob/master/readme.org" "Can be found on GitHub") ".") (def (sig (syntax "(define-monad name unit-function bind-function [fail-function])" (id define-monad)) (syntax "(using monad [body ...])" (id using)) (syntax "(do-using monad [body ...])" (id do-using)) (syntax "(do/m monad [body ...])" (id do/m))) (p "Within a monad scope:")) (def (sig (syntax "(fail monad [body ...])" (id fail)) (syntax "(return monad value)" (id return)) (syntax "([variable] <- [monad])" (id variable)) (syntax "(/m [monadic method])" (id /m)) (syntax "(/m! [monadic method] [parameters ...])" (id /m!))))) (section 2 "Contribution" (p "Contributions are welcome provided you accept the license I have chosen for this egg for the contributions themselves.") (p "The github repository is at: " (link "https://github.com/dleslie/monad-egg" "https://github.com/dleslie/monad-egg"))) (section 2 "Authors" (p "Original Egg By Daniel J. Leslie dan@ironoxide.ca") (p "Additional Contributors: Cameron Swords. Peter Bex")) (section 2 "License" (highlight scheme "Copyright 2012 Daniel J. Leslie. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are\npermitted provided that the following conditions are met:\n\n   1. Redistributions of source code must retain the above copyright notice, this list of\n      conditions and the following disclaimer.\n\n   2. Redistributions in binary form must reproduce the above copyright notice, this list\n      of conditions and the following disclaimer in the documentation and/or other materials\n      provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY DANIEL J. LESLIE ''AS IS'' AND ANY EXPRESS OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DANIEL J. LESLIE OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nThe views and conclusions contained in the software and documentation are those of the\nauthors and should not be interpreted as representing official policies, either expressed\nor implied, of Daniel J. Leslie.")))