Work around missing type signature in Happy
authorsimonpj@microsoft.com <unknown>
Fri, 30 Jul 2010 12:24:05 +0000 (12:24 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 30 Jul 2010 12:24:05 +0000 (12:24 +0000)
commitc800c1633c97a7ead022a142d015bf8db14f04f6
treeef6c3aa7226e53583e51ff4290ff52d88bd604d0
parente3d1ba74f7b1ec4ea7463aab783265b4baaf3366
Work around missing type signature in Happy

Happy generates

      notHappyAtAll = error "Blah"

without a type signature, and currently the new
typechecker doesn't generalise it.  This patch
says "no monomorphism restriction" which makes it
generalise again.

Better would be to add a type sig to Happy's template
compiler/cmm/CmmParse.y
compiler/parser/Parser.y.pp
compiler/parser/ParserCore.y
utils/hpc/HpcParser.y