GRHS with empty wherebinds gets wrong SrcSpan
authorAlan Zimmerman <alan.zimm@gmail.com>
Thu, 5 Feb 2015 23:37:42 +0000 (17:37 -0600)
committerAustin Seipp <austin@well-typed.com>
Thu, 5 Feb 2015 23:37:42 +0000 (17:37 -0600)
commitd4f25cb151db1a539aab66b26ccca4d166562b22
tree282c8b87d9553904236b47e1671e170f00709790
parentc88e11219c1e914b71d8c630a1f1d4f6f0fb6b9b
GRHS with empty wherebinds gets wrong SrcSpan

Summary:
When parsing a rhs, the GRHS is constructed via unguardedRHS which is
given a SrcSpan which only takes account of the '=' and wherebinds, so
does not include the exp when wherebinds are empty.

Test Plan: ./validate

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D643
compiler/parser/Parser.y