1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

toString.

This commit is contained in:
Rob Rix 2019-10-11 12:14:58 -04:00
parent a05bb26c9f
commit 7554271e2d
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -209,7 +209,7 @@ addressStyle heap = (G.defaultStyle vertex) { G.edgeAttributes }
Unit -> "()"
Bool b -> pack $ show b
String s -> pack $ show s
Closure p (Span s e) n _ _ -> "\\\\ " <> unName n <> " [" <> pack (show p) <> ":" <> showPos s <> "-" <> showPos e <> "]"
Closure p (Span s e) n _ _ -> "\\\\ " <> unName n <> " [" <> pack (Path.toString p) <> ":" <> showPos s <> "-" <> showPos e <> "]"
Record _ -> "{}"
showPos (Pos l c) = pack (show l) <> ":" <> pack (show c)