On Sun, Jun 27, 2010 at 6:45 PM, Max Bolingbroke <batterseapower@hotmail.com> wrote:
On 27 June 2010 22:20, Edward Kmett <ekmett@gmail.com> wrote:I spend no time on #haskell but clearly I should :)
> I've pointed out the Codensity Set monad on the Haskell channel.
But by the monad laws this is a totally fine thing to do, so this
> It is an
> interesting novelty, but it unfortunately has somewhat funny semantics in
> that the intermediate sets that you obtain are based on what you would get
> if you reparenthesized all of your binds and associating them to the right.
shouldn't lead to any unfortunate behaviour in practice, I hope.
Can you cast any light on the connection with NBE? It seems like adeep and powerful connection, so I'm sure it must correspond to some
interesting categorical principal.
type MendlerAlgebra f c = forall a. (a -> c) -> f a -> c
mcata :: MendlerAlgebra f c -> Mu f -> cmcata phi = phi (mcata phi) . outF