diff --git a/ghc/compiler/parser/Parser.y b/ghc/compiler/parser/Parser.y index 771748e40e436d65f71186a98a52e44dac27e47b..12a9e6ef049f9849e2d803dbef56f144f7e7e893 100644 --- a/ghc/compiler/parser/Parser.y +++ b/ghc/compiler/parser/Parser.y @@ -1,6 +1,6 @@ {- ----------------------------------------------------------------------------- -$Id: Parser.y,v 1.24 2000/02/25 14:55:42 panne Exp $ +$Id: Parser.y,v 1.25 2000/02/28 09:17:54 simonmar Exp $ Haskell grammar. @@ -515,11 +515,11 @@ ctype :: { RdrNameHsType } type :: { RdrNameHsType } : btype '->' type { MonoFunTy $1 $3 } + | IPVARID '::' type { MonoIParamTy (mkSrcUnqual ipName $1) $3 } | btype { $1 } btype :: { RdrNameHsType } : btype atype { MonoTyApp $1 $2 } - | IPVARID '::' type { MonoIParamTy (mkSrcUnqual ipName $1) $3 } | atype { $1 } atype :: { RdrNameHsType }