-----------------------------------------------------
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.
flags = [
Opt_ImplicitPrelude,
Opt_MonomorphismRestriction,
flags = [
Opt_ImplicitPrelude,
Opt_MonomorphismRestriction,
- Opt_Generics,
- -- Generating the helper-functions for
- -- generics is now on by default
Opt_Strictness,
-- strictness is on by default, but this only
-- applies to -O.
Opt_Strictness,
-- strictness is on by default, but this only
-- applies to -O.
#
# -O is pretty desirable, otherwise no inlining of prelude
# things (incl "+") happens when compiling with this compiler
#
# -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
DLLized=@EnableWin32DLLs@
# Win32 only: Enable the RTS and libraries to be built as DLLs
DLLized=@EnableWin32DLLs@