Parser tweak
authorIan Lynagh <igloo@earth.li>
Fri, 25 Jan 2008 14:58:47 +0000 (14:58 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 25 Jan 2008 14:58:47 +0000 (14:58 +0000)
compiler/parser/Parser.y.pp

index 418f0a1..cb25136 100644 (file)
@@ -1231,7 +1231,7 @@ decl      :: { Located (OrdList (LHsDecl RdrName)) }
         | docdecl                       { LL $ unitOL $1 }
 
 rhs    :: { Located (GRHSs RdrName) }
-       : '=' exp wherebinds    { L (comb3 $1 $2 $3) $ GRHSs (unguardedRHS $2) (unLoc $3) }
+       : '=' exp wherebinds    { sL (comb3 $1 $2 $3) $ GRHSs (unguardedRHS $2) (unLoc $3) }
        | gdrhs wherebinds      { LL $ GRHSs (reverse (unLoc $1)) (unLoc $2) }
 
 gdrhs :: { Located [LGRHS RdrName] }