Pretty-print hex literals in parser AST using lowercase "abcdef".

This makes the Cryptol.Parser.AST pretty printer consistent with the
one for values in Cryptol.Eval.Value.
This commit is contained in:
Brian Huffman 2014-07-15 16:43:20 -07:00
parent 4f28f4bfed
commit ca14cff93a

View File

@ -571,7 +571,7 @@ ppNumLit n info =
PolyLit w -> text "<|" <+> poly w <+> text "|>"
where
pad base pref w =
let txt = showIntAtBase base ("0123456789ABCDEF" !!) n ""
let txt = showIntAtBase base ("0123456789abcdef" !!) n ""
in text pref <> text (replicate (w - length txt) '0') <> text txt
poly w = let (res,deg) = bits Nothing [] 0 n