Commit 848a09fe authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Add a list of deprecated extenstions

Along with possibly another extension that replaces it.
parent 5123727e
......@@ -40,7 +40,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -}
module Language.Haskell.Extension (
Extension(..),
knownExtensions
knownExtensions,
deprecatedExtensions
) where
import Distribution.Text (Text(..))
......@@ -136,6 +137,14 @@ data Extension
| UnknownExtension String
deriving (Show, Read, Eq)
-- | Extensions that have been deprecated, possibly paired with another
-- extension that replaces it.
--
deprecatedExtensions :: [(Extension, Maybe Extension)]
deprecatedExtensions =
[ (RecordPuns, Just NamedFieldPuns)
]
knownExtensions :: [Extension]
knownExtensions =
[ OverlappingInstances
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment