Get the latest tech news

The Monad Called Free


called Free As Dan Doel points out here, the gadget Free that turns a functor into a monad is itself a kind of monad, though not the usual kind of monad we find in Haskell. I'll call it a higher order monad and you can find a type class corresponding to this in various places including an old version of Ed Kmett's category-extras.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Monad

Monad

Related news:

News photo

A list is a monad

News photo

A Burrito Is a Monad