mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-28 11:05:17 +03:00
Update namespaces with aliases in output
This commit is contained in:
parent
9156084075
commit
183bac8667
@ -145,7 +145,7 @@ getDocsFor fc n
|
||||
Just def <- lookupCtxtExact n (gamma defs)
|
||||
| Nothing => throw (UndefinedName fc n)
|
||||
ty <- normaliseHoles defs [] (type def)
|
||||
let doc = show n ++ " : " ++ show !(resugar [] ty)
|
||||
let doc = show !(aliasName n) ++ " : " ++ show !(resugar [] ty)
|
||||
++ "\n" ++ indent str
|
||||
extra <- getExtra n def
|
||||
pure (doc ++ extra)
|
||||
|
@ -162,7 +162,8 @@ perror (AllFailed ts)
|
||||
where
|
||||
pAlterror : (Maybe Name, Error) -> Core String
|
||||
pAlterror (Just n, err)
|
||||
= pure $ "If " ++ show !(getFullName n) ++ ": " ++ !(perror err) ++ "\n"
|
||||
= pure $ "If " ++ show !(aliasName !(getFullName n)) ++ ": "
|
||||
++ !(perror err) ++ "\n"
|
||||
pAlterror (Nothing, err)
|
||||
= pure $ "Possible error:\n\t" ++ !(perror err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user