From: sof Date: Wed, 29 Apr 1998 09:11:17 +0000 (+0000) Subject: [project @ 1998-04-29 09:11:17 by sof] X-Git-Tag: Approx_2487_patches~768 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c5a7c88c1a6af46322eaffc685432d35c7fcf39a;p=ghc-hetmet.git [project @ 1998-04-29 09:11:17 by sof] derived Show for labelled fields: use comma as separator, not comma followed by space --- diff --git a/ghc/compiler/typecheck/TcGenDeriv.lhs b/ghc/compiler/typecheck/TcGenDeriv.lhs index 94e3871..048b993 100644 --- a/ghc/compiler/typecheck/TcGenDeriv.lhs +++ b/ghc/compiler/typecheck/TcGenDeriv.lhs @@ -878,7 +878,7 @@ gen_Show_binds tycon | otherwise = --Assumption: no of fields == no of labelled fields -- (and in same order) concat $ - intersperse ([mk_showString_app (_CONS_ ',' SLIT(" "))]) $ -- Using SLIT()s containing ,s spells trouble. + intersperse ([mk_showString_app (_CONS_ ',' _NIL_)]) $ -- Using SLIT()s containing ,s spells trouble. zipWithEqual "gen_Show_binds" (\ a b -> [a,b]) (map show_label labels)