@@ -250,6 +250,7 @@ runEvalCmd plId st EvalParams{..} =
250
250
Target
251
251
(TargetFile fp Nothing )
252
252
False
253
+ (stringToUnitId " blah-0.1.0.0-inplace" )
253
254
(Just (textToStringBuffer mdlText, now))
254
255
255
256
-- Setup environment for evaluation
@@ -331,7 +332,8 @@ runEvalCmd plId st EvalParams{..} =
331
332
lbs <- liftIO $ runAction " eval: GetLinkables" st $ do
332
333
linkables_needed <- reachableModules <$> use_ GetDependencyInformation nfp
333
334
uses_ GetLinkable (filter (/= nfp) linkables_needed) -- We don't need the linkable for the current module
334
- let hscEnv'' = hscEnv' { hsc_HPT = addListToHpt (hsc_HPT hscEnv') [(moduleName $ mi_module $ hm_iface hm, hm) | lb <- lbs, let hm = linkableHomeMod lb] }
335
+ -- let hscEnv'' = hscEnv' { hsc_HPT = addListToHpt (hsc_HPT hscEnv') [(moduleName $ mi_module $ hm_iface hm, hm) | lb <- lbs, let hm = linkableHomeMod lb] }
336
+ let hscEnv'' = hscUpdateHPT (flip addListToHpt [(moduleName $ mi_module $ hm_iface hm, hm) | lb <- lbs, let hm = linkableHomeMod lb] ) hscEnv'
335
337
336
338
edits <-
337
339
perf " edits" $
@@ -703,20 +705,20 @@ doKindCmd :: Bool -> DynFlags -> Text -> Ghc (Maybe Text)
703
705
doKindCmd False df arg = do
704
706
let input = T. strip arg
705
707
(_, kind) <- typeKind False $ T. unpack input
706
- let kindText = text (T. unpack input) <+> " ::" <+> pprTypeForUser kind
708
+ let kindText = text (T. unpack input) <+> " ::" <+> pprSigmaType kind
707
709
pure $ Just $ T. pack (showSDoc df kindText)
708
710
doKindCmd True df arg = do
709
711
let input = T. strip arg
710
712
(ty, kind) <- typeKind True $ T. unpack input
711
- let kindDoc = text (T. unpack input) <+> " ::" <+> pprTypeForUser kind
712
- tyDoc = " =" <+> pprTypeForUser ty
713
+ let kindDoc = text (T. unpack input) <+> " ::" <+> pprSigmaType kind
714
+ tyDoc = " =" <+> pprSigmaType ty
713
715
pure $ Just $ T. pack (showSDoc df $ kindDoc $$ tyDoc)
714
716
715
717
doTypeCmd :: DynFlags -> Text -> Ghc (Maybe Text )
716
718
doTypeCmd dflags arg = do
717
719
let (emod, expr) = parseExprMode arg
718
720
ty <- GHC. exprType emod $ T. unpack expr
719
- let rawType = T. strip $ T. pack $ showSDoc dflags $ pprTypeForUser ty
721
+ let rawType = T. strip $ T. pack $ showSDoc dflags $ pprSigmaType ty
720
722
broken = T. any (\ c -> c == ' \r ' || c == ' \n ' ) rawType
721
723
pure $
722
724
Just $
@@ -725,7 +727,7 @@ doTypeCmd dflags arg = do
725
727
T. pack $
726
728
showSDoc dflags $
727
729
text (T. unpack expr)
728
- $$ nest 2 (" ::" <+> pprTypeForUser ty)
730
+ $$ nest 2 (" ::" <+> pprSigmaType ty)
729
731
else expr <> " :: " <> rawType <> " \n "
730
732
731
733
parseExprMode :: Text -> (TcRnExprMode , T. Text )
0 commit comments