don't print empty contexts in errors
This commit is contained in:
parent
84e1cc78cc
commit
46e13c8ca2
3 changed files with 16 additions and 3 deletions
|
@ -300,12 +300,12 @@ parameters {auto _ : (Eq q, IsQty q, PrettyHL q)} (unicode : Bool)
|
|||
where
|
||||
inTContext : TyContext q d n -> Doc HL -> Doc HL
|
||||
inTContext ctx doc =
|
||||
if showContext then
|
||||
if showContext && not (null ctx) then
|
||||
vsep [sep ["in context", prettyTyContext unicode ctx], doc]
|
||||
else doc
|
||||
|
||||
inEContext : EqContext q n -> Doc HL -> Doc HL
|
||||
inEContext ctx doc =
|
||||
if showContext then
|
||||
if showContext && not (null ctx) then
|
||||
vsep [sep ["in context", prettyEqContext unicode ctx], doc]
|
||||
else doc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue