Use _ rather than "other" in generated code
authorIan Lynagh <igloo@earth.li>
Sat, 29 Mar 2008 14:25:08 +0000 (14:25 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 29 Mar 2008 14:25:08 +0000 (14:25 +0000)
utils/genprimopcode/Main.hs

index 0e7c815..3b30742 100644 (file)
@@ -408,7 +408,7 @@ gen_switch_from_attribs attrib_name fn_name (Info defaults entries)
             Nothing -> error ("gen_switch_from: " ++ attrib_name)
             Just xx 
                -> unlines alternatives
-                  ++ fn_name ++ " other = " ++ getAltRhs xx ++ "\n"
+                  ++ fn_name ++ " _ = " ++ getAltRhs xx ++ "\n"
 
 ------------------------------------------------------------------
 -- Create PrimOpInfo text from PrimOpSpecs -----------------------