[Git][ghc/ghc][wip/fix-hie-map] Use types already in AST when making .hie file

Matthew Pickering gitlab at gitlab.haskell.org
Thu May 30 09:55:07 UTC 2019



Matthew Pickering pushed to branch wip/fix-hie-map at Glasgow Haskell Compiler / GHC


Commits:
1fe9eb9d by Matthew Pickering at 2019-05-30T09:54:54Z
Use types already in AST when making .hie file

These were meant to be added in !214 but for some reason wasn't included
in the patch.

Update Haddock submodule for new Types.hs hyperlinker output

- - - - -


2 changed files:

- compiler/hieFile/HieAst.hs
- utils/haddock


Changes:

=====================================
compiler/hieFile/HieAst.hs
=====================================
@@ -479,7 +479,9 @@ instance HasType (LHsExpr GhcTc) where
 
     in
     case tyOpt of
-      _ | skipDesugaring e' -> fallback
+      Just t -> makeTypeNode e' spn t
+      Nothing
+        | skipDesugaring e' -> fallback
         | otherwise -> do
             hs_env <- Hsc $ \e w -> return (e,w)
             (_,mbe) <- liftIO $ deSugarExpr hs_env e


=====================================
utils/haddock
=====================================
@@ -1 +1 @@
-Subproject commit 273d5aa8d4a3208879192aeca3b9f1a8245a3c3e
+Subproject commit f01473ed28e7c2700ff8e87b00ab87a802c9edd9



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1fe9eb9daa5c8133e503a92affa8ec17cc78256f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1fe9eb9daa5c8133e503a92affa8ec17cc78256f
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/20190530/3d64929d/attachment.html>


More information about the ghc-commits mailing list