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

Yoshikuni Jujo PAF01143 at nifty.ne.jp
Tue Aug 27 05:43:02 CEST 2013


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thPprRationalL.patch
Type: text/x-diff
Size: 909 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130827/1a1fd369/attachment.patch>


More information about the ghc-devs mailing list