News for hackers. Stuff that matters.
Re:Haskell: The Bad Parts, part 2 (2020) by nightski on Tuesday February 09, 2021 @11:24AM (#26079343)
Yea, I agree with this and it's a good pattern in the case you know the type is "Int" or some other primitive. But Haskell thrives on type variables and data structures are usually defined generically making it more complicated.

From what I remember to get around this one would use a type class to define a data structure's operations, and then provide specific implementations of that data structure for specific strict data types. But that is more complicated than just having the compiler apply strictness everywhere.

There are no comments on this comment yet.