Correct BangPat SrcSpan calculation
authorMatthew Pickering <matthewtpickering@gmail.com>
Mon, 29 Jun 2015 19:11:17 +0000 (21:11 +0200)
committerAlan Zimmerman <alan.zimm@gmail.com>
Mon, 29 Jun 2015 19:11:17 +0000 (21:11 +0200)
commitc6bb2fc50716a2fc540d55ecddbc5c14e94979f7
tree40794b76b4966197f2f81338ecfa55d47f5ce867
parent9b5df2a401ba8f033cbbc80331f16ac8cf827c92
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
compiler/parser/RdrHsSyn.hs