Ticket #31 (closed bug report: fixed)

Opened 6 years ago

Last modified 6 years ago

LINE pragmas cause trouble

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

Description

We cannot handle LINE pragmas since they can appear anywhere at all. This was reported by NeilMitchell?:

module Foo where
{-# LINE 10 "Bar" #-}
import Baz

The only possible solution here is to treat LINE pragmas as comments, along with any other unknown pragmas.

Change History

Changed 6 years ago by nibro

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

I've disabled unknown pragmas, they are now simply discarded as comments. When in the next stage I retain the comments while lexing, there will be other options to handle custom pragmas via that comment stack.

Note: See TracTickets for help on using tickets.