5 ms·
Very few extensions have been deprecated: http://hackage.haskell.org/package/Cabal-1.24.0.0/docs/src/Language.Haskell.Extension.html#deprecatedExtensions http:/
by taylorfausak 10y ago
Very few extensions have been deprecated: http://hackage.haskell.org/package/Cabal-1.24.0.0/docs/src/Language.Haskell.Extension.html#deprecatedExtensions http://hackage.haskell.org/package/Cabal-1.24.0.0/docs/src/L...
Convenient, widely-used extensions that have been around for a long time aren't yet part of the language standard: https://prime.haskell.org/ticket/67 https://prime.haskell.org/ticket/67
- DanWaterworth 10y agoThat's not anywhere near a complete list of deprecated extensions and there are others that have been completely removed from the language [1]. It's unfortunate that ScopedTypeVariables hasn't been standardised, but there hasn't been a new standard since 2010, so it's not hugely surprising. https://ghc.haskell.org/trac/ghc/wiki/LanguagePragmaHistory https://ghc.haskell.org/trac/ghc/wiki/LanguagePragmaHistory
- taylorfausak 10y agoThanks for that link! I haven't seen that wiki page before. Even so, only 4 extensions have been removed. I know others are de facto deprecated, like Rank2Types. I picked scoped type variables as an example because it's been in GHC since version 6.4. That was released in March 2005, so it had plenty of time to make it into the Haskell2010 language standard.
- DanWaterworth 10y agoI'd expect either Rank2Types or RankNTypes to be included in Haskell', you may be thinking of ImpredicativeTypes. Wow, I did not realize ScopedTypeVariables had been around for so long.
- taylorfausak 10y agoSorry, I meant that you pretty much always want RankNTypes instead of Rank2Types. My fault for not specifying.