summaryrefslogtreecommitdiff
path: root/docs/users_guide/glasgow_exts.rst
diff options
context:
space:
mode:
authorChaitanya Koparkar <ckoparkar@gmail.com>2019-04-19 09:50:54 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-05-05 10:39:24 -0400
commit615b4be66341edb513785d3511e71803c45da90f (patch)
treeb52cb5145ada51a62f9356fd3f7c7c73b51bbd68 /docs/users_guide/glasgow_exts.rst
parentdc8a5868b0be03854927a5efab83a6e9a15e21d1 (diff)
downloadhaskell-615b4be66341edb513785d3511e71803c45da90f.tar.gz
Fix #16593 by having only one definition of -fprint-explicit-runtime-reps
[skip ci]
Diffstat (limited to 'docs/users_guide/glasgow_exts.rst')
-rw-r--r--docs/users_guide/glasgow_exts.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/users_guide/glasgow_exts.rst b/docs/users_guide/glasgow_exts.rst
index c86f30d00b..6d09b44cb7 100644
--- a/docs/users_guide/glasgow_exts.rst
+++ b/docs/users_guide/glasgow_exts.rst
@@ -9625,7 +9625,17 @@ when printing, and printing ``TYPE 'LiftedRep`` as ``Type`` (or ``*`` when
:extension:`StarIsType` is on).
Should you wish to see levity polymorphism in your types, enable
-the flag :ghc-flag:`-fprint-explicit-runtime-reps`.
+the flag :ghc-flag:`-fprint-explicit-runtime-reps`. For example,
+
+ .. code-block:: none
+
+ ghci> :t ($)
+ ($) :: (a -> b) -> a -> b
+ ghci> :set -fprint-explicit-runtime-reps
+ ghci> :t ($)
+ ($)
+ :: forall (r :: GHC.Types.RuntimeRep) a (b :: TYPE r).
+ (a -> b) -> a -> b
.. _type-level-literals: