Commit 615b4be6 authored by Chaitanya Koparkar's avatar Chaitanya Koparkar Committed by Marge Bot
Browse files

Fix #16593 by having only one definition of -fprint-explicit-runtime-reps

[skip ci]
parent dc8a5868
......@@ -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:
 
......
......@@ -810,27 +810,6 @@ messages and in GHCi:
exposed to the programmer, but it is nevertheless displayed when
:ghc-flag:`-fprint-explicit-kinds` is enabled.
.. ghc-flag:: -fprint-explicit-runtime-reps
:shortdesc: Print ``RuntimeRep`` variables in types which are
runtime-representation polymorphic.
:type: dynamic
:reverse: -fno-print-explicit-runtime-reps
:category: verbosity
When :ghc-flag:`-fprint-explicit-runtime-reps` is enabled, GHC prints
``RuntimeRep`` type variables for levity-polymorphic types.
Otherwise GHC will default these to ``LiftedRep``. 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
.. ghc-flag:: -fprint-explicit-coercions
:shortdesc: Print coercions in types
:type: dynamic
......@@ -1131,4 +1110,3 @@ Some flags only make sense for a particular use case.
included. This option can be used to specify the path to the
``ghcversions.h`` file to be included. This is primarily intended to be
used by GHC's build system.
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