summaryrefslogtreecommitdiff
path: root/ghc/compiler/parser/Parser.y
diff options
context:
space:
mode:
authorsimonmar <unknown>2000-06-01 08:51:46 +0000
committersimonmar <unknown>2000-06-01 08:51:46 +0000
commite6612ed1f69c5e0be13ea4b0141e66f967b70de7 (patch)
tree836d942e35cfe4d1e8d4400d91401091c76eda2a /ghc/compiler/parser/Parser.y
parent46faadc39c722fd777a3d5580ba65472e6d26b55 (diff)
downloadhaskell-e6612ed1f69c5e0be13ea4b0141e66f967b70de7.tar.gz
[project @ 2000-06-01 08:51:46 by simonmar]
allow infix constructors to be declared with prefix notation, eg data T a b = (:^:) a b
Diffstat (limited to 'ghc/compiler/parser/Parser.y')
-rw-r--r--ghc/compiler/parser/Parser.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc/compiler/parser/Parser.y b/ghc/compiler/parser/Parser.y
index 51bd67a901..9279e44f97 100644
--- a/ghc/compiler/parser/Parser.y
+++ b/ghc/compiler/parser/Parser.y
@@ -1,6 +1,6 @@
{-
-----------------------------------------------------------------------------
-$Id: Parser.y,v 1.31 2000/05/25 12:41:17 simonpj Exp $
+$Id: Parser.y,v 1.32 2000/06/01 08:51:46 simonmar Exp $
Haskell grammar.
@@ -607,6 +607,7 @@ scontype :: { (RdrName, [RdrNameBangType]) }
scontype1 :: { (RdrName, [RdrNameBangType]) }
: btype '!' atype {% splitForConApp $1 [Banged $3] }
| scontype1 satype { (fst $1, snd $1 ++ [$2] ) }
+ | '(' consym ')' { ($2,[]) }
satype :: { RdrNameBangType }
: atype { Unbanged $1 }