Opened 11 years ago

Closed 11 years ago

Last modified 8 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

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 11 years ago by igloo

Milestone: 6.8

comment:2 Changed 11 years ago by igloo

Resolution: fixed
Status: newclosed

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

Thanks for the report!

comment:3 Changed 10 years ago by igloo

Milestone: 6.8 branch6.8.1

comment:4 Changed 9 years ago by simonmar

Architecture: MultipleUnknown/Multiple

comment:5 Changed 9 years ago by simonmar

Operating System: MultipleUnknown/Multiple

comment:6 Changed 8 years ago by simonmar

difficulty: Easy (1 hr)Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.