[project @ 2001-01-26 16:13:54 by qrczak]
authorqrczak <unknown>
Fri, 26 Jan 2001 16:13:54 +0000 (16:13 +0000)
committerqrczak <unknown>
Fri, 26 Jan 2001 16:13:54 +0000 (16:13 +0000)
Eta-expand to avoid monomorphism restriction.

ghc/utils/genprimopcode/Main.hs

index 18f5ffe..79cdada 100644 (file)
@@ -495,7 +495,7 @@ optdef d p
 sel12 a b = a
 sel22 a b = b
 sel23 a b c = b
-apply = liftM
+apply f p = liftM f p
 
 -- Hacks for zapping whitespace and comments, unfortunately needed
 -- because Daan won't let us have a lexer before the parser :-(