[Git][ghc/ghc][wip/aidylns/remove-sourcetext-from-overloadedlabel] Fix the parser

Adriaan Leijnse (@aidylns) gitlab at gitlab.haskell.org
Sat Jun 8 15:44:45 UTC 2024



Adriaan Leijnse pushed to branch wip/aidylns/remove-sourcetext-from-overloadedlabel at Glasgow Haskell Compiler / GHC


Commits:
6759bbe3 by Adriaan Leijnse at 2024-06-08T17:44:11+02:00
Fix the parser

- - - - -


1 changed file:

- compiler/GHC/Parser.y


Changes:

=====================================
compiler/GHC/Parser.y
=====================================
@@ -3007,7 +3007,7 @@ aexp2   :: { ECP }
         | ipvar %shift                  {% fmap ecpFromExp
                                            (ams1 $1 (HsIPVar NoExtField $! unLoc $1)) }
         | overloaded_label              {% fmap ecpFromExp
-                                           (ams1 $1 (HsOverLabel NoExtField (fst $! unLoc $1) (snd $! unLoc $1))) }
+                                           (ams1 $1 (HsOverLabel (fst $! unLoc $1) (snd $! unLoc $1))) }
         | literal                       { ECP $ mkHsLitPV $! $1 }
 -- This will enable overloaded strings permanently.  Normally the renamer turns HsString
 -- into HsOverLit when -XOverloadedStrings is on.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6759bbe36281b1b1a4b9796a8dd0e51a2ee6fd49

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6759bbe36281b1b1a4b9796a8dd0e51a2ee6fd49
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240608/ffa23fb6/attachment.html>


More information about the ghc-commits mailing list