Skip to content
0:00 / 0:00

#haskell#monads

The Haskell Unfolder Episode 34: you already understand monads

Well-Typed

3.4K subscribers • 13 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Linked in the descriptionwell-typed/unfolder

Intermediate. Assumes working knowledge.

2K views2 years ago1 recommendation

Programming languagesComputer scienceHaskellFunctional programming

An explanation of monads as a generalization of function composition, showing how they compose programs and what the monad laws mean.

Function composition is the idea that we can take two functions and create a new function, which applies the two functions one after the other. When viewed from the right angle, monads generalize this idea from functions to programs: construct new programs by running other programs one after the other. In this episode we make this simple idea precise. We will also see what the monad laws look like in this setting, and we will discuss an example of what goes wrong when the monad laws are broken. Links: * GitHub repo: github.com/well-typed/unfolder * Unfolder episode 8 on reasoning: youtube.com/watch?v=V7673JaWXaA

Why it's here

1 person recommends this

u/kosmikusin r/haskell • Recommends

The Haskell Unfolder Episode 34: you already understand monads