Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#1260 closed bug (fixed)

TH doesn't pretty-print classes without fundeps correctly

Reported by: greenrd Owned by:
Priority: normal Milestone: 6.8.1
Component: Template Haskell Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

A class with no functional dependencies is pretty-printed with a spurious | character, like in this example:

class Abstraction c_0 a_1 |
    where abstractL :: forall m_2 . GHC.Base.Monad m_2 => c_0 ->
                                                          Control.Monad.State.StateT ([(Ident,
                                                                                        Term)])
                                                                                     m_2
                                                                                     a_1

Change History (6)

comment:1 Changed 7 years ago by igloo

  • Milestone set to 6.8

comment:2 Changed 7 years ago by igloo

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

Fixed (in HEAD and 6.6 branch) by a patch from Stefan O'Rear.

Thanks for the report!

comment:3 Changed 6 years ago by igloo

  • Milestone changed from 6.8 branch to 6.8.1

comment:4 Changed 6 years ago by simonmar

  • Architecture changed from Multiple to Unknown/Multiple

comment:5 Changed 6 years ago by simonmar

  • Operating System changed from Multiple to Unknown/Multiple

comment:6 Changed 4 years ago by simonmar

  • Difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.