From: widmogrod Date: Mon, 26 Jun 2017 11:16:12 +0000 (+0200) Subject: comment code X-Git-Tag: 2.0.0-beta3~5^2~1 X-Git-Url: http://cameron1729.xyz/?a=commitdiff_plain;h=7fa8d3e7299950646d245b1f4bafa92bb3814bb3;p=php-functional.git comment code --- diff --git a/example/FreeMonadTest.php b/example/FreeMonadTest.php index 82ec559..bbe1ba7 100644 --- a/example/FreeMonadTest.php +++ b/example/FreeMonadTest.php @@ -109,6 +109,7 @@ function echo_chaining_() ->bind(function () { return exitSuccess_() ->bind(function () { + // In interpretation of IO Monad this place will never be reached return putStrLn_('Finished'); }); }); @@ -121,7 +122,7 @@ function echo_composition_() getLine_, bind(putStrLn_), bind(exitSuccess_), - bind(putStrLn_) + bind(putStrLn_) // In interpretation of IO Monad this place will never be reached )(null); } @@ -160,7 +161,7 @@ class FreeMonadTest extends \PHPUnit_Framework_TestCase { return [ 'echo implementation via explicit chaining (bind)' => [echo_chaining_()], - 'echo implementation via function composition' => [echo_composition_()], + 'echo implementation via function composition' => [echo_composition_()], ]; } }