4 ms·
> (...) making my types strict by default with the StrictData extension. Additionally, Haskell has lazy linked lists as the default list type. Instead I used a
by hcarvalhoalves 6y ago
> (...) making my types strict by default with the StrictData extension. Additionally, Haskell has lazy linked lists as the default list type. Instead I used a strict list type.
Is this the norm for production-ready Haskell codebase - basically throw away laziness?
- WraithM 6y agoNo
- bweitzman 6y agoStrict by default is becoming increasingly popular in production. It makes programs behave a lot more predictably for many common use cases. Extensions are enabled on a module by module basis so if you turn on strictness by default, you can still opt in to laziness if you have certain data structures/algorithms that rely on it.