git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #2041 from LiamGoodacre/update/psci/show-import

Update PSCi `:show import`

commita3f940b6b685f61ead455c5cdfecf5cfdfa7a655 authorGary Burgess <gary.burgess@gmail.com> dateWed 20 Apr 2016, 00:21 (11 years ago) parent0b0cc2cae3ce06
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