diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2019-11-28 20:50:22 +0000 |
---|---|---|
committer | Alan Zimmerman <alan.zimm@gmail.com> | 2019-11-28 20:50:22 +0000 |
commit | f5866f9aa7fcdf81f8d385d33a842be6e7f2f210 (patch) | |
tree | c3290f4ac64b0fa37642cf0b12d9a0bd2c4a5924 /compiler | |
parent | 6c59cc71dc20f26d5a6650b16a82faeae72f2065 (diff) | |
download | haskell-wip/T17519.tar.gz |
API Annotations: Unicode '->' on HsForallTywip/T17519
The code fragment
type family Proxy2' ∷ ∀ k → k → Type where
Proxy2' = Proxy'
Generates AnnRarrow instead of AnnRarrowU for the first →.
Fixes #17519
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser/Parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y index b91e1681c5..f5bfebc219 100644 --- a/compiler/parser/Parser.y +++ b/compiler/parser/Parser.y @@ -1885,7 +1885,7 @@ unpackedness :: { Located ([AddAnn], SourceText, SrcUnpackedness) } forall_vis_flag :: { (AddAnn, ForallVisFlag) } : '.' { (mj AnnDot $1, ForallInvis) } - | '->' { (mj AnnRarrow $1, ForallVis) } + | '->' { (mu AnnRarrow $1, ForallVis) } -- A ktype/ktypedoc is a ctype/ctypedoc, possibly with a kind annotation ktype :: { LHsType GhcPs } |