Use types already in AST when making .hie file
authorMatthew Pickering <matthewtpickering@gmail.com>
Fri, 26 Apr 2019 18:55:27 +0000 (19:55 +0100)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 31 May 2019 05:58:08 +0000 (01:58 -0400)
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

compiler/hieFile/HieAst.hs
utils/haddock

index 84e5a62..4f1b2a3 100644 (file)
@@ -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
index 273d5aa..f01473e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 273d5aa8d4a3208879192aeca3b9f1a8245a3c3e
+Subproject commit f01473ed28e7c2700ff8e87b00ab87a802c9edd9