Local function rewritten to use justIf
This commit is contained in:
parent
444dd225e1
commit
97c2c62c31
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user