Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
3b607293
Commit
3b607293
authored
May 17, 2011
by
Duncan Coutts
Browse files
Add a deprecated knownExtensions for better backwards compatability
As suggested by Hamish Mackenzie
parent
f7a382d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Language/Haskell/Extension.hs
View file @
3b607293
...
...
@@ -44,6 +44,7 @@ module Language.Haskell.Extension (
Extension
(
..
),
KnownExtension
(
..
),
knownExtensions
,
deprecatedExtensions
)
where
...
...
@@ -435,7 +436,12 @@ data KnownExtension =
-- | Enable non-decreasing indentation for 'do' blocks.
|
NondecreasingIndentation
deriving
(
Show
,
Read
,
Eq
,
Enum
)
deriving
(
Show
,
Read
,
Eq
,
Enum
,
Bounded
)
{-# DEPRECATED knownExtensions
"KnownExtension is an instance of Enum and Bounded, use those instead." #-}
knownExtensions
::
[
KnownExtension
]
knownExtensions
=
[
minBound
..
maxBound
]
-- | Extensions that have been deprecated, possibly paired with another
-- extension that replaces it.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment