coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Casteran Pierre <pierre.casteran AT labri.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Free monads and strict positivity
- Date: Tue, 07 Oct 2014 07:43:53 +0200
- Organization: LaBRI - Université Bordeaux 1 - France
Hi,
Talking about Free monads, let me quote two messages by Arnaud Spiwack in this list (messages posted on June 24th 2013: look at the archive)
Below is a very generic approach to the free-monad thing. It is parametrized by the commands you may want to execute in your monad (in fact the free monad construction is a sort of W-type with an extra constructor for returns). An interesting side-effect of this generic definition, is that the (dependent) recursor of the free monad corresponds exactly to the type of handlers in the algebraic effect language Eff ( http://math.andrej.com/eff/ ).
In the messages you can find the generic definition, then an instantiation to the monad generated by a command that calls a random generator.
Pierre
- [Coq-Club] Free monads and strict positivity, John Wiegley, 10/06/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/06/2014
- Re: [Coq-Club] Free monads and strict positivity, John Wiegley, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/08/2014
- [Coq-Club] Fwd: Free monads and strict positivity, Pierre-Evariste Dagand, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, John Wiegley, 10/08/2014
- Re: [Coq-Club] Free monads and strict positivity, Daniel Schepler, 10/07/2014
- Re: [Coq-Club] Free monads and strict positivity, Casteran Pierre, 10/07/2014
- Re: [Coq-Club] Free monads and strict positivity, Pierre-Evariste Dagand, 10/06/2014
Archive powered by MHonArc 2.6.18.