[Git][ghc/ghc][wip/T18599] Implement toHie for new syntax via desugared forms

Shayne Fletcher gitlab at gitlab.haskell.org
Tue Nov 24 20:58:04 UTC 2020



Shayne Fletcher pushed to branch wip/T18599 at Glasgow Haskell Compiler / GHC


Commits:
2ca0d854 by Shayne Fletcher at 2020-11-24T15:57:33-05:00
Implement toHie for new syntax via desugared forms

- - - - -


1 changed file:

- compiler/GHC/Iface/Ext/Ast.hs


Changes:

=====================================
compiler/GHC/Iface/Ext/Ast.hs
=====================================
@@ -1162,10 +1162,9 @@ instance HiePass p => ToHie (Located (HsExpr (GhcPass p))) where
       HsSpliceE _ x ->
         [ toHie $ L mspan x
         ]
-      GetField _ expr _ _ ->
-        [ toHie expr
-        ]
-      Projection _ _ _ -> []
+      GetField _ _ _ g -> [ toHie $ L mspan (unLoc g) ]
+      Projection _ _ p -> [ toHie $ L mspan (unLoc p) ]
+      RecordDotUpd _ _ _ u -> [ toHie $ L mspan (unLoc u) ]
       XExpr x
         | GhcTc <- ghcPass @p
         , WrapExpr (HsWrap w a) <- x



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2ca0d8543dae3853d15a8d0b5c4e586b058d7b4c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2ca0d8543dae3853d15a8d0b5c4e586b058d7b4c
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/20201124/732d01cf/attachment-0001.html>


More information about the ghc-commits mailing list