3min chapter

Happy Path Programming cover image

#75 Haskell "Not as Scary as You Think" with Kris Jenkins

Happy Path Programming

CHAPTER

How to Control Haskell Side Effects

In most languages that don't do this, it is the norm to just ignore the things that can go wrong. Haskell has this mechanism for baking side effects into the type system in a way that if your code uses networking, that's baked into the type signature. So you cannot avoid accepting, noticing, dealing with the fact that you are now subject to the side effect of networking. It does that primarily through the word I was going to try and avoid saying, but you can't discuss Haskell for an hour without saying it through monads. Yeah. But I think people often confuse up monad are Haskell is trying to get rid of side effects and then it realized early in its inception that

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode