about template haskell's pretty print: 3 % 5 -> 3 / 5

27 Aug
2013
27 Aug
'13
3:43 a.m.
Hello! I think it's better that the ghc can read what is printed by pretty printer. Now: pprLit 0 (RationalL 3.5) => 7 % 2 I want: pprLit 0 (RationalL 3.5) => 7 / 2 I'll send patch --- pprLit i (RationalL rat) = parensIf (i > noPrec) $ integer (numerator rat) <+> char '/' <+> integer (denominator rat)
4332
Age (days ago)
4332
Last active (days ago)
0 comments
1 participants
participants (1)
-
Yoshikuni Jujo