Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
cb698570
Commit
cb698570
authored
May 09, 2011
by
dreixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate -XGenerics.
parent
811746d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+4
-6
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcDeriv.lhs
+1
-2
No files found.
compiler/main/DynFlags.hs
View file @
cb698570
...
...
@@ -343,8 +343,8 @@ data ExtensionFlag
|
Opt_DeriveTraversable
|
Opt_DeriveFoldable
|
Opt_DeriveGeneric
-- Allow deriving Generic/1
|
Opt_DefaultSignatures
-- Allow extra signatures for defmeths
|
Opt_Generics
-- Generic deriving mechanism
|
Opt_DefaultSignatures
-- Allow extra signatures for defmeths
|
Opt_Generics
-- Old generic classes, now deprecated
|
Opt_TypeSynonymInstances
|
Opt_FlexibleContexts
...
...
@@ -1640,7 +1640,8 @@ xFlags = [
(
"ParallelArrays"
,
Opt_ParallelArrays
,
nop
),
(
"TemplateHaskell"
,
Opt_TemplateHaskell
,
checkTemplateHaskellOk
),
(
"QuasiQuotes"
,
Opt_QuasiQuotes
,
nop
),
(
"Generics"
,
Opt_Generics
,
nop
),
(
"Generics"
,
Opt_Generics
,
\
_
->
deprecate
"it does nothing; look into -XDefaultSignatures and -XDeriveGeneric for generic programming support."
),
(
"ImplicitPrelude"
,
Opt_ImplicitPrelude
,
nop
),
(
"RecordWildCards"
,
Opt_RecordWildCards
,
nop
),
(
"NamedFieldPuns"
,
Opt_RecordPuns
,
nop
),
...
...
@@ -1749,9 +1750,6 @@ impliedFlags
,
(
Opt_RecordWildCards
,
turnOn
,
Opt_DisambiguateRecordFields
)
,
(
Opt_ParallelArrays
,
turnOn
,
Opt_ParallelListComp
)
-- The new behavior of the XGenerics flag is just to turn on these two flags
,
(
Opt_Generics
,
turnOn
,
Opt_DefaultSignatures
)
,
(
Opt_Generics
,
turnOn
,
Opt_DeriveGeneric
)
]
optLevelFlags
::
[([
Int
],
DynFlag
)]
...
...
compiler/typecheck/TcDeriv.lhs
View file @
cb698570
...
...
@@ -940,8 +940,7 @@ sideConditions mtheta cls
| cls_key == traversableClassKey = Just (checkFlag Opt_DeriveTraversable `andCond`
cond_functorOK False)
| cls_key == genClassKey = Just (cond_RepresentableOk `andCond`
(checkFlag Opt_DeriveGeneric `orCond`
checkFlag Opt_Generics))
checkFlag Opt_DeriveGeneric)
| otherwise = Nothing
where
cls_key = getUnique cls
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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