i am curious: for people learning Haskell after learning other PLs, are newtypes weird? difficult? is it hard to distinguish when you'd want a newtype vs a type alias* vs a data declaration?
* n.b. you probably don't want a type alias, what are you doing
Conversation
Oh it confused the shit out of me. Still does. Feels like something the compiler should figure out behind the scenes. rust does this.
3
5
Yeah - why on earth can't the compiler optimise the layout of a single-variant data declaration... it's quite odd.


