3 ms·
Do you have any links to, or can you share any more information about "modern" haskell? What's different?
by rychco 4y ago
Do you have any links to, or can you share any more information about "modern" haskell? What's different?
- rrradical 4y agoMore info on the extension they referenced here: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/control.html#extension-GHC2021 https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/cont... But basically it's a meta-extension that flips on a bunch of extensions that most haskell users would come to expect as 'default'. As a simple example: TupleSections. If the compiler complained to me that I needed to turn on TupleSections, I wouldn't take a minute to consider whether it was a good idea, I'd just be annoyed that I hadn't flipped it on somewhere already.
- bontaq 4y agoPretty much what rrradical said. I haven't seen any articles around "writing code with only haskell 2010 vs GHC2021", but now that we have a baseline in the community things like that could be written. Actually that flag existing is part of why I think new books are being written, to start defining what "modern" (with all these flags on by default) haskell looks like.