https://wiki.haskell.org/api.php?action=feedcontributions&user=Udo+Stenzel&feedformat=atomHaskellWiki - User contributions [en]2024-03-28T11:19:13ZUser contributionsMediaWiki 1.35.5https://wiki.haskell.org/index.php?title=Talk:MonadPlus_reform_proposal&diff=1799Talk:MonadPlus reform proposal2006-01-20T12:17:28Z<p>Udo Stenzel: </p>
<hr />
<div>This is a good proposal, I think. The standard libraries use MonadZero only in two places: functions <tt>guard</tt> and <tt>msum</tt>. <tt>msum</tt> should probably be accompanied by a reduction with <tt>morelse</tt>, which should then be called <tt>mchoice</tt>.<br />
<br />
Parsec already has operators <tt>(<|>)</tt> and <tt>choice</tt> with fitting semantics. Simply calling <tt>morelse (<|>)</tt> and <tt>mchoice choice</tt> might be even more convenient.<br />
<br />
--[[User:Udo Stenzel|Udo Stenzel]] 11:42, 20 January 2006 (UTC)</div>Udo Stenzelhttps://wiki.haskell.org/index.php?title=Talk:MonadPlus_reform_proposal&diff=1798Talk:MonadPlus reform proposal2006-01-20T11:42:20Z<p>Udo Stenzel: </p>
<hr />
<div>This is a good proposal, I think. The standard libraries use MonadZero only in two places: functions <tt>guard</tt> and <tt>msum</tt>. <tt>msum</tt> should probably be accompanied by a reduction with <tt>morelse</tt>, which should then be called <tt>mchoice</tt>.<br />
<br />
Parsec already has operators <tt>(<++)</tt> and <tt>choice</tt> with fitting semantics. Simply calling <tt>morelse (<++)</tt> and <tt>mchoice choice</tt> might be even more convenient.<br />
<br />
--[[User:Udo Stenzel|Udo Stenzel]] 11:42, 20 January 2006 (UTC)</div>Udo Stenzel