git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update PSCi `:show import`

For #2040 * Removed deprecated `qualified` keyword * Added imported names list to qualified imports

commitae3ce067557711cff94508e0c05a8ed7c525bc66 authorLiam Goodacre <goodacre.liam@gmail.com> dateTue 19 Apr 2016, 22:59 (11 years ago) parent0b0cc2c
1 file changed+2−3
psci/PSCi.hs+2−3
psci/PSCi.hs+2−3
@@ -243,9 +243,8 @@ handleShowImportedModules = do
243243 where
244244 showModules = return . unlines . sort . map showModule
245245 showModule (mn, declType, asQ) =
246− "import " ++ case asQ of
247− Just mn' -> "qualified " ++ N.runModuleName mn ++ " as " ++ N.runModuleName mn'
248− Nothing -> N.runModuleName mn ++ " " ++ showDeclType declType
246+ "import " ++ N.runModuleName mn ++ showDeclType declType ++
247+ foldMap (\mn' -> " as " ++ N.runModuleName mn') asQ
249248
250249 showDeclType P.Implicit = ""
251250 showDeclType (P.Explicit refs) = refsList refs