Open wolfadex opened 3 years ago
There are periodically users of Elm who write code like
type Change = Increment type Increment = ByOne | ByTwo
and are confused that the type Increment doesn't correspond to the variant Increment. They don't realize that they actually need to write
Increment
type Change = Increment Increment type Increment = ByOne | ByTwo
to get their intended result.
real world example from May 20th, 2021
There are periodically users of Elm who write code like
and are confused that the type
Increment
doesn't correspond to the variantIncrement
. They don't realize that they actually need to writeto get their intended result.
real world example from May 20th, 2021