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
|
mtype' <- mtype
|
||||||
return $ concat $ catMaybes [mqualified, Just $ formatOp $ getOccString e, mtype']
|
return $ concat $ catMaybes [mqualified, Just $ formatOp $ getOccString e, mtype']
|
||||||
where
|
where
|
||||||
mqualified
|
mqualified = (moduleNameString (moduleName $ nameModule e) ++ ".") `justIf` qualified opt
|
||||||
| qualified opt = Just $ moduleNameString (moduleName $ nameModule e) ++ "."
|
|
||||||
| otherwise = Nothing
|
|
||||||
mtype
|
mtype
|
||||||
| detailed opt = do
|
| detailed opt = do
|
||||||
tyInfo <- modInfoLookupName minfo e
|
tyInfo <- modInfoLookupName minfo e
|
||||||
|
Loading…
Reference in New Issue
Block a user