Disable deprecated things (#536)
authorDavid Feuer <David.Feuer@gmail.com>
Fri, 9 Mar 2018 20:29:20 +0000 (15:29 -0500)
committerGitHub <noreply@github.com>
Fri, 9 Mar 2018 20:29:20 +0000 (15:29 -0500)
commiteef77269e2c12cc82ece402488359b2ae11963da
tree4b896f66638c9cc2bb437ea00c438a8396a864e7
parent1a38677b6daf914910f8332706ee9525d7bf9494
Disable deprecated things (#536)

Disable all deprecated functions by making them produce type errors when used.
This is an experimental removal approach.  It may or may not really be a good
idea. The benefit is that unlike deprecation it *forces* people to make a
change, and unlike immediate removal it tells them what change to make.

With GHC 8.0 and above, the type errors are pretty. With earlier
versions of GHC, they're gross. With a hypothetical non-GHC compiler, the
functions are just removed.
13 files changed:
Data/IntMap.hs
Data/IntMap/Internal/DeprecatedDebug.hs
Data/IntMap/Lazy.hs
Data/IntMap/Strict.hs
Data/Map.hs
Data/Map/Internal/DeprecatedShowTree.hs
Data/Map/Lazy.hs
Data/Map/Strict.hs
Data/Map/Strict/Internal.hs
Utils/Containers/Internal/TypeError.hs [new file with mode: 0644]
changelog.md
containers.cabal
tests/deprecated-properties.hs [deleted file]