projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02de8fd
)
Use _ rather than "other" in generated code
author
Ian Lynagh
<igloo@earth.li>
Sat, 29 Mar 2008 14:25:08 +0000
(14:25 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 29 Mar 2008 14:25:08 +0000
(14:25 +0000)
utils/genprimopcode/Main.hs
patch
|
blob
|
history
diff --git
a/utils/genprimopcode/Main.hs
b/utils/genprimopcode/Main.hs
index
0e7c815
..
3b30742
100644
(file)
--- a/
utils/genprimopcode/Main.hs
+++ b/
utils/genprimopcode/Main.hs
@@
-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 -----------------------