diff options
Diffstat (limited to 'utils/genprimopcode/Parser.y')
-rw-r--r-- | utils/genprimopcode/Parser.y | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/genprimopcode/Parser.y b/utils/genprimopcode/Parser.y index cd712d7584..89e61d5236 100644 --- a/utils/genprimopcode/Parser.y +++ b/utils/genprimopcode/Parser.y @@ -183,10 +183,11 @@ ppT : lowerName { TyVar $1 } pTycon :: { TyCon } pTycon : upperName { TyCon $1 } - | '(' ')' { TyCon "()" } - | SCALAR { SCALAR } - | VECTOR { VECTOR } - | VECTUPLE { VECTUPLE } + | '(' ')' { TyCon "()" } + | '(' '->' ')' { TyCon "->" } + | SCALAR { SCALAR } + | VECTOR { VECTOR } + | VECTUPLE { VECTUPLE } { parse :: String -> Either String Info |