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

Matthew Pickering gitlab at gitlab.haskell.org
Sat May 25 10:50:41 UTC 2019



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


Commits:
1b729423 by Matthew Pickering at 2019-05-25T10:50:24Z
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 22672e9ac0834e9620475ffa13f8eda9053e5bf6



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

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/1b729423b47f36b66ec2fc53646c2743a0dfa7e9
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/20190525/44cfc11e/attachment.html>


More information about the ghc-commits mailing list