Ticket #155 (new enhancement)

Opened 4 years ago

Last modified 10 months ago

Infix constraints are printed prefixed

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

Description

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 4 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 10 months ago by Fūzetsu

HsPred? no longer exists so that idea is out.

Note: See TracTickets for help on using tickets.