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
8e73f2c0
Commit
8e73f2c0
authored
Jul 10, 2007
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement -XDeriveDataTypeable flag
parent
3c23b14c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+3
-0
compiler/typecheck/TcDeriv.lhs
compiler/typecheck/TcDeriv.lhs
+1
-1
No files found.
compiler/main/DynFlags.hs
View file @
8e73f2c0
...
...
@@ -187,6 +187,7 @@ data DynFlag
|
Opt_RecordPuns
|
Opt_GADTs
|
Opt_RelaxedPolyRec
-- -X=RelaxedPolyRec
|
Opt_DeriveDataTypeable
|
Opt_TypeSynonymInstances
|
Opt_FlexibleContexts
|
Opt_FlexibleInstances
...
...
@@ -1167,6 +1168,7 @@ xFlags = [
(
"UnboxedTuples"
,
Opt_UnboxedTuples
),
(
"ExpressionSignaturesUnboxedTuples"
,
Opt_ExpressionSignaturesUnboxedTuples
),
(
"TypeSynonymUnboxedTuples"
,
Opt_TypeSynonymUnboxedTuples
),
(
"DeriveDataTypeable"
,
Opt_DeriveDataTypeable
),
(
"TypeSynonymInstances"
,
Opt_TypeSynonymInstances
),
(
"FlexibleContexts"
,
Opt_FlexibleContexts
),
(
"FlexibleInstances"
,
Opt_FlexibleInstances
),
...
...
@@ -1195,6 +1197,7 @@ glasgowExtsFlags = [ Opt_GlasgowExts
,
Opt_ExpressionSignaturesUnboxedTuples
,
Opt_TypeSynonymUnboxedTuples
,
Opt_TypeSynonymInstances
,
Opt_DeriveDataTypeable
,
Opt_FlexibleContexts
,
Opt_FlexibleInstances
,
Opt_ConstrainedClassMethods
...
...
compiler/typecheck/TcDeriv.lhs
View file @
8e73f2c0
...
...
@@ -409,7 +409,7 @@ mkEqnHelp orig tvs cls cls_tys tc_app
; (rep_tc, rep_tc_args) <- tcLookupFamInstExact tycon full_tc_args
; mayDeriveDataTypeable <- doptM Opt_
GlasgowExts
; mayDeriveDataTypeable <- doptM Opt_
DeriveDataTypeable
; newtype_deriving <- doptM Opt_GeneralizedNewtypeDeriving
; overlap_flag <- getOverlapFlag
...
...
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