Commit 3ab57e45 authored by simonpj's avatar simonpj
Browse files

[project @ 2005-02-07 12:16:50 by simonpj]

	Switch off derivable type class generation by default

	Merge to STABLE

This commit switches off the generation of the support code for 'Derivable
Type Classes' by default.  Use -fgenerics to switch it on.

Motivation: seldom used, and there's a nasty blowup in Core types for data
types that have lots of constructors or lots of fields.

We now put -fgenerics in the GhcLibOpts, so that the libraries have the
support code, as before.
parent 233b831b
......@@ -388,9 +388,6 @@ defaultDynFlags = DynFlags {
flags = [
-- Generating the helper-functions for
-- generics is now on by default
-- strictness is on by default, but this only
-- applies to -O.
......@@ -319,8 +319,13 @@ endif
# -O is pretty desirable, otherwise no inlining of prelude
# things (incl "+") happens when compiling with this compiler
# -fgenerics switches on generation of support code for
# derivable type classes. This is now off by default,
# but we switch it on for the libraries so that we generate
# the code in case someone importing wants it
GhcLibHcOpts=-O -Rghc-timing
GhcLibHcOpts=-O -Rghc-timing -fgenerics
# Win32 only: Enable the RTS and libraries to be built as DLLs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment