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

Matthew Pickering gitlab at gitlab.haskell.org
Fri May 24 20:55:56 UTC 2019



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


Commits:
06b2f887 by Matthew Pickering at 2019-05-24T20:55:29Z
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 cc00ac46c718905bd86c1f13154f958b5162cf95



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/06b2f88700579acd5652678e30d3b349b7bcb1aa

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/06b2f88700579acd5652678e30d3b349b7bcb1aa
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/20190524/cdeb706c/attachment.html>


More information about the ghc-commits mailing list