summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Lau <luke_lau@icloud.com>2019-10-19 01:37:22 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-27 11:35:40 -0400
commitc62817f2366fc630098fa02147d0231a3d13f48f (patch)
treee324ae2b2088b66e88426edfe1ee57095fa1dbb1
parent4054f0e537c467f226c57342371c953e2053fb08 (diff)
downloadhaskell-c62817f2366fc630098fa02147d0231a3d13f48f.tar.gz
Fix RankNTypes :ghc-flag: in users guide
This fixes a hadrian `build docs` failure
-rw-r--r--docs/users_guide/8.10.1-notes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/users_guide/8.10.1-notes.rst b/docs/users_guide/8.10.1-notes.rst
index 54046d06bb..9ead1bb017 100644
--- a/docs/users_guide/8.10.1-notes.rst
+++ b/docs/users_guide/8.10.1-notes.rst
@@ -131,10 +131,10 @@ Language
bar = foo
- Notice that ``A`` enables :ghc-flag:`RankNTypes`, but ``B`` does not.
+ Notice that ``A`` enables :ghc-flag:`-XRankNTypes`, but ``B`` does not.
Previous versions of GHC would allow ``bar`` to typecheck, even though its
inferred type is higher-rank. GHC 8.10 will now reject this, as one must now
- enable :ghc-flag:`RankNTypes` in ``B`` to accept the inferred type signature.
+ enable :ghc-flag:`-XRankNTypes` in ``B`` to accept the inferred type signature.
Compiler
~~~~~~~~