Ticket #191 (new bug report)

Opened 8 years ago

Last modified 8 years ago

Fixity resolution improvements

Reported by: NeilMitchell2 Owned by: nibro
Priority: major Milestone:
Component: other Version: 1.8.x
Keywords: Cc: ndmitchell@…


Two related improvements:

1) If a parse results in a fixity error it should be reported through ParseError?, not by raising error.

2) The applyFixities function is very limited. A better signature would be:

applyFixities :: a -> ([FixityError?],a)

Now when there is a fixity error you get back a list of the errors, and a revised document with as many fixities resolved as possible. This would be particularly useful for HLint: http://code.google.com/p/ndmitchell/issues/detail?id=302

And more generally, it should suit any user of HSE. With a simple FixityError? -> ParseError? function the apply fixities could easily be reused for the main parsing.

Change History

Changed 8 years ago by NeilMitchell2

  • cc ndmitchell@… added
Note: See TracTickets for help on using tickets.