Ticket #1260 (closed bug: fixed)

Opened 6 years ago

Last modified 4 years ago

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

Changed 6 years ago by igloo

  • milestone set to 6.8

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

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

Thanks for the report!

Changed 6 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.1

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

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.