[GHC] #8188: about template haskell's pretty print: 3 % 5 -> 3 / 5
#8188: about template haskell's pretty print: 3 % 5 -> 3 / 5 -------------------------------------+------------------------------------- Reporter: YoshikuniJujo | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.6.3 Keywords: template haskell | Operating System: Unknown/Multiple pretty print RationalL | Type of failure: Incorrect result Architecture: Unknown/Multiple | at runtime Difficulty: Easy (less than 1 | Test Case: hour) | Blocking: Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- 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: => 7 / 2 I'll send patch. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8188> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8188: about template haskell's pretty print: 3 % 5 -> 3 / 5 -------------------------------------+------------------------------------- Reporter: YoshikuniJujo | Owner: simonpj Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.6.3 Resolution: | Keywords: template haskell Operating System: Unknown/Multiple | pretty print RationalL Type of failure: Incorrect result | Architecture: Unknown/Multiple at runtime | Difficulty: Easy (less than 1 Test Case: | hour) Blocking: | Blocked By: | Related Tickets: -------------------------------------+------------------------------------- Changes (by simonpj): * owner: => simonpj -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8188#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8188: about template haskell's pretty print: 3 % 5 -> 3 / 5 -------------------------------------+------------------------------------- Reporter: YoshikuniJujo | Owner: simonpj Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.6.3 Resolution: fixed | Keywords: template haskell Operating System: Unknown/Multiple | pretty print RationalL Type of failure: Incorrect result | Architecture: Unknown/Multiple at runtime | Difficulty: Easy (less than 1 Test Case: | hour) Blocking: | Blocked By: | Related Tickets: -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: Fixed by {{{ commit ec6d5a7c9b0c9e2fb1ce10d776cff74548e17981 Author: Simon Peyton Jones <simonpj@microsoft.com> Date: Wed Aug 28 16:43:00 2013 +0100 Improve pretty printing for Template Haskell operators Fixes Trac #8187, #8188. Thanks to Yoshikuni Jujo for pointing this out and doing the first draft. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8188#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC