Correct BangPat SrcSpan calculation ghc-7.10.2-rc2
authorMatthew Pickering <matthewtpickering@gmail.com>
Mon, 29 Jun 2015 19:11:17 +0000 (21:11 +0200)
committerAustin Seipp <austin@well-typed.com>
Tue, 30 Jun 2015 12:50:53 +0000 (07:50 -0500)
commit5560861e4562a2e270e6610e6ef3cf120253bb16
tree0b5ce746aa27e9a89942727bebc545bf903d68f9
parent9ea4ded2ee7822aed05275c390c285f0a60a6ef6
Correct BangPat SrcSpan calculation

Summary:
Previously when the split was performed in splitBang, `BangPat` was given the
same SrcSpan as the whole of the LHS of the declaration. This patch
correctly calculates the value.

Reviewers: alanz, austin

Reviewed By: alanz, austin

Subscribers: thomie, bgamari

Differential Revision: https://phabricator.haskell.org/D1020

GHC Trac Issues: #10588

(cherry picked from commit c6bb2fc50716a2fc540d55ecddbc5c14e94979f7)
compiler/parser/RdrHsSyn.hs