[Haskell-cafe] free monad versus operational for blackjack game
Paul Brauner
polux2001 at gmail.com
Mon Jan 23 07:47:28 UTC 2017
As far as I understand there's a more profound difference, see
http://stackoverflow.com/a/14295488/357732.
On Wed, Jan 18, 2017 at 8:23 PM Brandon Allbery <allbery.b at gmail.com> wrote:
> 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.
>
> On Wed, Jan 18, 2017 at 2:14 PM, Michael Litchard <
> litchard.michael at gmail.com> wrote:
>
> I'm studying the code for a blackjack game: See marked answer.
> http://codereview.stackexchange.com/questions/46809/blackjack-in-haskell
>
> 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?
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
>
>
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170123/a55a4bd2/attachment.html>
More information about the Haskell-Cafe
mailing list