Re: LINE pragma behaviour

2021-11-23 Thread Ben Gamari
"Alan & Kim Zimmerman" writes: > I am working through some ghc-exactprint test cases with GHC 9.2.1 and came > across an oddity. > > If I parse some source with > > {-# LINE 93 "Foo.chs" #-} > > on line five, it shows up in the ParseSource as > > (L > (Anchor >{ LINE:5:1-25 } >

LINE pragma behaviour

2021-11-22 Thread Alan & Kim Zimmerman
I am working through some ghc-exactprint test cases with GHC 9.2.1 and came across an oddity. If I parse some source with {-# LINE 93 "Foo.chs" #-} on line five, it shows up in the ParseSource as (L (Anchor { LINE:5:1-25 } (UnchangedAnchor)) (EpaComment (EpaLineComment "{-#