WIP
This commit is contained in:
parent
615d54531d
commit
8770636be3
@ -6,7 +6,8 @@ This note covers `09-haskell-newtype/`, which models validated user input with `
|
|||||||
|
|
||||||
## 1. Why `newtype` Matters
|
## 1. Why `newtype` Matters
|
||||||
|
|
||||||
Plain `Text` values do not tell you what they represent. A user name and an email address could both be `Text`, even though they mean different things.
|
Plain `Text` values do not tell you what they represent. A user name and an email address could both be `Text`, even though they mean different
|
||||||
|
things.
|
||||||
|
|
||||||
This example wraps those concepts explicitly:
|
This example wraps those concepts explicitly:
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user