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
a684a551
Commit
a684a551
authored
Mar 08, 2013
by
jpm@cs.ox.ac.uk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make AutoDeriveTypeable imply DeriveDataTypeable
parent
f6e9c261
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+3
-0
docs/users_guide/flags.xml
docs/users_guide/flags.xml
+2
-1
docs/users_guide/glasgow_exts.xml
docs/users_guide/glasgow_exts.xml
+2
-1
No files found.
compiler/main/DynFlags.hs
View file @
a684a551
...
...
@@ -2728,6 +2728,9 @@ impliedFlags
,
(
Opt_TypeFamilies
,
turnOn
,
Opt_KindSignatures
)
-- Type families use kind signatures
,
(
Opt_PolyKinds
,
turnOn
,
Opt_KindSignatures
)
-- Ditto polymorphic kinds
-- AutoDeriveTypeable is not very useful without DeriveDataTypeable
,
(
Opt_AutoDeriveTypeable
,
turnOn
,
Opt_DeriveDataTypeable
)
-- We turn this on so that we can export associated type
-- type synonyms in subordinates (e.g. MyClass(type AssocType))
,
(
Opt_TypeFamilies
,
turnOn
,
Opt_ExplicitNamespaces
)
...
...
docs/users_guide/flags.xml
View file @
a684a551
...
...
@@ -1069,7 +1069,8 @@
</row>
<row>
<entry><option>
-XAutoDeriveTypeable
</option></entry>
<entry>
Automatically
<link
linkend=
"auto-derive-typeable"
>
derive Typeable instances for every datatype and type class declaration
</link>
.
</entry>
<entry>
Automatically
<link
linkend=
"auto-derive-typeable"
>
derive Typeable instances for every datatype and type class declaration
</link>
.
Implies
<option>
-XDeriveDataTypeable
</option>
.
</entry>
<entry>
dynamic
</entry>
<entry><option>
-XNoAutoDeriveTypeable
</option></entry>
</row>
...
...
docs/users_guide/glasgow_exts.xml
View file @
a684a551
...
...
@@ -3434,7 +3434,8 @@ can be mentioned in the <literal>deriving</literal> clause.
<para>
The flag
<option>
-XAutoDeriveTypeable
</option>
triggers the generation
of derived
<literal>
Typeable
</literal>
instances for every datatype and type
class declaration in the module it is used.
class declaration in the module it is used. This flag implies
<option>
-XDeriveDataTypeable
</option>
(
<xref
linkend=
"deriving-typeable"
/>
).
</para>
</sect2>
...
...
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