summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2019-08-30 15:05:42 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-09-08 21:40:32 -0400
commit51379b89eb08252560e911ab559205ea69d21fec (patch)
treea22051d462b8040fd4bdfb71abb04b2e13c45691 /docs
parentb0fdd7fe666ae61044f041233354765c4bb68529 (diff)
downloadhaskell-51379b89eb08252560e911ab559205ea69d21fec.tar.gz
Add a new flag -dno-typeable-binds for debugging
See the user manual entry -- this helps when debugging as generated Core gets smaller without these bindings.
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/debugging.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/users_guide/debugging.rst b/docs/users_guide/debugging.rst
index f966e1a32f..572dd154f8 100644
--- a/docs/users_guide/debugging.rst
+++ b/docs/users_guide/debugging.rst
@@ -885,3 +885,15 @@ Checking for determinism
generates in decreasing order
* ``-dinitial-unique=1 -dunique-increment=PRIME`` - where PRIME big enough
to overflow often - nonsequential order
+
+Other
+-----
+
+.. ghc-flag:: -dno-typeable-binds
+ :shortdesc: Don't generate bindings for Typeable methods
+ :type: dynamic
+
+ This avoid generating Typeable-related bindings for modules and types. This
+ is useful when debugging because it gives smaller modules and dumps, but the
+ compiler will panic if you try to use Typeable instances of things that you
+ built with this flag.