replace '≔' and '·' with '=' and (only) '.'
This commit is contained in:
parent
1c53b63bdf
commit
f2272da4b4
6 changed files with 42 additions and 38 deletions
|
@ -15,16 +15,15 @@ commas [x] = [x]
|
|||
commas (x::xs) = (x <+> hl Delim ",") :: commas xs
|
||||
|
||||
private %inline
|
||||
blobD : Pretty.HasEnv m => m (Doc HL)
|
||||
blobD = hlF Delim $ ifUnicode "·" "%"
|
||||
dotD : Doc HL
|
||||
dotD = hl Delim "."
|
||||
|
||||
export %inline
|
||||
prettyQtyBinds : Pretty.HasEnv m => PrettyHL q => PrettyHL a =>
|
||||
List q -> a -> m (Doc HL)
|
||||
prettyQtyBinds [] x = pretty0M x
|
||||
prettyQtyBinds qtys x = pure $
|
||||
hang 2 $ sep [aseparate comma !(traverse pretty0M qtys) <++> !blobD,
|
||||
!(pretty0M x)]
|
||||
hcat [hseparate comma !(traverse pretty0M qtys), dotD, align !(pretty0M x)]
|
||||
|
||||
|
||||
public export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue