Ticket #38 (closed feature request: fixed)

Opened 8 years ago

Last modified 8 years ago

Better error messages for read errors in LANGUAGE pragmas

Reported by: nibro Owned by: nibro
Priority: minor Milestone: Full code support
Component: parser Version: 0.5.4
Keywords: Cc:


Reported by Sebastian Fischer:

Errors in derived read instances should be caught to give a more useful error message. I encountered this when using the (hopefully soon deprecated) LANGUAGE pragma NoMonoPatBinds?.

'Prelude.read: no parse'

Change History

Changed 8 years ago by nibro

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

I've stopped using read altogether, in favor of readsPrec, so now there should be no more balking on unrecognised extensions. Case closed.

Note: See TracTickets for help on using tickets.