Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1143 closed bug (fixed)

prettyprint case alternatives get pushed too far to the right

Reported by: ken.takusagawa.2@… Owned by:
Priority: normal Milestone:
Component: hslibs/hssource Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I've been trying to make case statements, or more specifically HsGuardedAlts? not get pushed way far to the right when the pattern (HsPat?) is long (wide). I've had good results with the attached patch.

Attachments (2)

pretty.patch (564 bytes) - added by ken.takusagawa.2@… 7 years ago.
patch to Haskell Language Pretty Printer
pretty.2.patch (521 bytes) - added by ken.takusagawa.2@… 7 years ago.
minimal patch to libraries/haskell-src/Language/Haskell/Pretty.hs

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by ken.takusagawa.2@…

patch to Haskell Language Pretty Printer

Changed 7 years ago by ken.takusagawa.2@…

minimal patch to libraries/haskell-src/Language/Haskell/Pretty.hs

comment:1 Changed 7 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Patch applied, thanks!

comment:2 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.