Make :i (->) work; fixes trac #1587
authorIan Lynagh <igloo@earth.li>
Fri, 17 Aug 2007 22:17:33 +0000 (22:17 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 17 Aug 2007 22:17:33 +0000 (22:17 +0000)
compiler/parser/Parser.y.pp

index b624455..1cee18b 100644 (file)
@@ -345,6 +345,7 @@ identifier :: { Located RdrName }
        | qcon                          { $1 }
        | qvarop                        { $1 }
        | qconop                        { $1 }
+    | '(' '->' ')'      { LL $ getRdrName funTyCon }
 
 -----------------------------------------------------------------------------
 -- Module Header