Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
677c6fa2
Commit
677c6fa2
authored
14 years ago
by
Ian Lynagh
Browse files
Options
Downloads
Patches
Plain Diff
Add some more extensions that GHC knows about
parent
2e4c13c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Language/Haskell/Extension.hs
+41
-0
41 additions, 0 deletions
Language/Haskell/Extension.hs
with
41 additions
and
0 deletions
Language/Haskell/Extension.hs
+
41
−
0
View file @
677c6fa2
...
...
@@ -389,6 +389,47 @@ data KnownExtension =
-- paper \"Regular Expression Patterns\" by Niklas Broberg, Andreas Farre
-- and Josef Svenningsson, from ICFP '04.
|
RegularPatterns
-- | Enables the use of tuple sections, e.g. @(, True)@ desugars into
-- @\x -> (x, True)@.
|
TupleSections
-- | Allows GHC primops, written in C--, to be imported into a Haskell
-- file.
|
GHCForeignImportPrim
-- | Support for patterns of the form @n + k@, where @k@ is an
-- integer literal.
|
NPlusKPatterns
-- | Improve the layout rule when @if@ expressions are used in a @do@
-- block.
|
DoAndIfThenElse
-- | Makes much of the Haskell sugar be desugared into calls to the
-- function with a particular name that is in scope.
|
RebindableSyntax
-- | Make @forall@ a keyword in types, which can be used to give the
-- generalisation explicitly.
|
ExplicitForAll
-- | Allow contexts to be put on datatypes, e.g. the @Eq a@ in
-- @data Eq a => Set a = NilSet | ConsSet a (Set a)@.
|
DatatypeContexts
-- | Local (@let@ and @where@) bindings are monomorphic.
|
MonoLocalBinds
-- | Enable @deriving@ for the @Data.Functor.Functor@ class.
|
DeriveFunctor
-- | Enable @deriving@ for the @Data.Traversable.Traversable@ class.
|
DeriveTraversable
-- | Enable @deriving@ for the @Data.Foldable.Foldable@ class.
|
DeriveFoldable
deriving
(
Show
,
Read
,
Eq
,
Enum
)
-- | Extensions that have been deprecated, possibly paired with another
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment