Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ec2712d6a76956ac7a6b2207a67388ca6ab95c0d

>---------------------------------------------------------------

commit ec2712d6a76956ac7a6b2207a67388ca6ab95c0d
Author: Simon Marlow <[email protected]>
Date:   Tue May 24 13:42:16 2011 +0100

    fix warnings

>---------------------------------------------------------------

 utils/genprimopcode/Main.hs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/utils/genprimopcode/Main.hs b/utils/genprimopcode/Main.hs
index d9bfd21..14f0834 100644
--- a/utils/genprimopcode/Main.hs
+++ b/utils/genprimopcode/Main.hs
@@ -141,6 +141,7 @@ gen_hs_source (Info defaults entries) =
      where opt (OptionFalse n)   = n ++ " = False"
            opt (OptionTrue n)    = n ++ " = True"
           opt (OptionString n v) = n ++ " = { " ++ v ++ "}"
+           opt (OptionInteger n v) = n ++ " = " ++ show v
 
           hdr s@(Section {})                    = sec s
           hdr (PrimOpSpec { name = n })         = wrapOp n ++ ","
@@ -409,7 +410,8 @@ gen_latex_doc (Info defaults entries)
               Just (OptionTrue _) -> if_true
               Just (OptionFalse _) -> if_false
               Just (OptionString _ _) -> error "String value for boolean 
option"
-              Nothing -> ""
+               Just (OptionInteger _ _) -> error "Integer value for boolean 
option"
+               Nothing -> ""
           
           mk_strictness o = 
             case lookup_attrib "strictness" o of



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to