[GHC] #13414: shebang + literate haskell causes line numbering skew

GHC ghc-devs at haskell.org
Mon Mar 13 21:06:28 UTC 2017


#13414: shebang + literate haskell causes line numbering skew
-------------------------------------+-------------------------------------
        Reporter:  slyfox            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3333
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"c77b767098be53087e0b06ba23d613dd7c3bcf8e/ghc" c77b767/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="c77b767098be53087e0b06ba23d613dd7c3bcf8e"
 unlit: replace the SHEBANG with an empty line

 This corrects the line numbers for literate code after a shebang.
 Fixes #13414.

 Test Plan: validate

 Reviewers: austin, bgamari, trofi

 Reviewed By: bgamari, trofi

 Subscribers: trofi, rwbarton, thomie

 Differential Revision: https://phabricator.haskell.org/D3333
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13414#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list