Ticket #155 (new enhancement)

Opened 7 years ago

Last modified 3 years ago

Infix constraints are printed prefixed

Reported by: basvandijk Owned by:
Priority: minor Milestone:
Version: 2.7.2 Keywords:


In my regions package I make extensive use of infix constraints.

Take my hFileSize function for example. If you look at the source you'll notice that the constraint: pr `ParentOf` cr is written infix. However haddock prints it prefixed: ParentOf pr cr.

It would be nice if Haddock respected the fixity of the written constraint.

Change History

Changed 6 years ago by waern

  • milestone 2.7.0 deleted

To fix this we'll have to augment the HsPred type in GHC to remember if the class was used infix or not.

Changed 3 years ago by Fūzetsu

HsPred? no longer exists so that idea is out.

Note: See TracTickets for help on using tickets.