Skip to content
0:00 / 0:00

#newtype#laziness#strictness

@rae: Newtypes and strict datatypes behave differently

Tweag by Modus Create

5K subscribers • 25 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Richard Eisenberg

Intermediate. Assumes working knowledge.

1.2K views5 years ago2 recommendations

Programming languagesHaskell

Richard Eisenberg explains the differences in evaluation behavior between standard datatypes, strict datatypes, and newtypes in Haskell.

We explore the difference in evaluation behavior between datatypes, strict datatypes, and newtypes, which initially came as a surprise to me. Find me at richarde.dev/ or on Twitter at @RaeHaskell.

Why it's here

2 people recommend this

What people say. Recommended for understanding the subtle differences in how laziness works around Haskell's data and newtype declarations.

Moments people linked to

u/enobayramin r/haskell • Recommends

On “What is the reason behind the need of explicitly declare `newtype` ?”

There are some subtleties in how laziness works around `data`, `data` + strictness annotations and `newtype`. See this video from Richard Eisenberg: link to this video
14View on Reddit

u/Faucelmein r/haskell • Recommends

On “What is the reason behind the need of explicitly declare `newtype` ?”

Related: [video