Skip to content
0:00 / 0:00

#distributive#representable#functor

The Haskell Unfolder Episode 35: distributive and representable functors

Well-Typed

3.4K subscribers • 14 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Intermediate. Assumes working knowledge.

1.3K views1 year ago2 recommendations

Programming languagesHaskellFunctional programming

An explanation of the Distributive and Representable type classes in Haskell and how they can be used to model grids.

We're going to look at two somewhat more exotic type classes in the Haskell library ecosystem: Distributive and Representable. The former allows you to distribute one functor over another, the latter provides you with a notion of an index to access the elements. As an example, we'll return once more to the grids used in Episodes 32 and 33 to describe the tic-tac-toe game, and we'll see how some operations we used can be made more elegant in terms of these type classes. This episode is, however, self-contained; having seen the previous episodes is not required.

Why it's here

2 people recommend this

What people say. Recommended as a helpful resource for understanding Representable functors in Haskell.

u/kosmikusin r/haskell • Recommends

The Haskell Unfolder Episode 35: distributive and representable functors

u/stokersssin r/haskell • Recommends

On “Beginner Haskeller - Help with Maze generation types”

Thanks, I haven't seen the Representable bits before but hopefully this unfoldr episode will help [video