remove universe type

This commit is contained in:
rhiannon morris 2023-03-05 16:48:29 +01:00
parent 0cae84c75b
commit b7acf39c39
8 changed files with 21 additions and 44 deletions

View file

@ -32,6 +32,16 @@ ofD = hl Syntax "of"
returnD = hl Syntax "return"
export
prettyUnivSuffix : Pretty.HasEnv m => Universe -> m (Doc HL)
prettyUnivSuffix l =
ifUnicode (pretty $ pack $ map sub $ unpack $ show l) (pretty l)
where
sub : Char -> Char
sub c = case c of
'0' => ''; '1' => ''; '2' => ''; '3' => ''; '4' => ''
'5' => ''; '6' => ''; '7' => ''; '8' => ''; '9' => ''; _ => c
export
prettyBindType : PrettyHL a => PrettyHL b => PrettyHL q =>
Pretty.HasEnv m =>