Local function rewritten to use justIf

This commit is contained in:
mvoidex 2013-11-18 18:22:49 +04:00
parent 444dd225e1
commit 97c2c62c31

View File

@ -55,9 +55,7 @@ showExport opt minfo e = do
mtype' <- mtype
return $ concat $ catMaybes [mqualified, Just $ formatOp $ getOccString e, mtype']
where
mqualified
| qualified opt = Just $ moduleNameString (moduleName $ nameModule e) ++ "."
| otherwise = Nothing
mqualified = (moduleNameString (moduleName $ nameModule e) ++ ".") `justIf` qualified opt
mtype
| detailed opt = do
tyInfo <- modInfoLookupName minfo e