<div dir="ltr">The operational package is just a free monad with some canned conveniences. If what it provides is sufficient for your use case, there's no reason to switch; but if they don't fit your use case, you can use one of the other embellished free monads (e.g. MonadPrompt) or start from a bare free monad and write what you need.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 18, 2017 at 2:14 PM, Michael Litchard <span dir="ltr"><<a href="mailto:litchard.michael@gmail.com" target="_blank">litchard.michael@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm studying the code for a blackjack game: See marked answer.<br><a href="http://codereview.stackexchange.com/questions/46809/blackjack-in-haskell" target="_blank">http://codereview.<wbr>stackexchange.com/questions/<wbr>46809/blackjack-in-haskell</a><br><br></div>It uses the operational package, and mentions one could write equivalent code using a free monad. But my question is, for this use case is there any benefit for using a free monad? <br></div>
<br>______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div>