X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fgenerator.ml;h=73ba813e45ca06793dd04545feded00923000480;hp=07b8ef2154c183f31c901b9955feeda5d3fc9b93;hb=05273da8830f2f10e417115a3981924a8b14228a;hpb=ec34c2bfbfcc53eadf823536dc182710e19b48b2 diff --git a/src/generator.ml b/src/generator.ml index 07b8ef2..73ba813 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -7264,11 +7264,8 @@ and generate_haskell_hs () = * at the moment. Please help out! *) let can_generate style = - let check_no_bad_args = - List.for_all (function Bool _ -> false | _ -> true) - in match style with - | RErr, args -> check_no_bad_args args + | RErr, _ -> true | RBool _, _ | RInt _, _ | RInt64 _, _ @@ -7378,7 +7375,7 @@ last_error h = do let args = List.map ( function - | Bool n -> sprintf "(fromIntegral %s)" n + | Bool n -> sprintf "(fromBool %s)" n | Int n -> sprintf "(fromIntegral %s)" n | FileIn n | FileOut n | String n | OptString n | StringList n -> n ) (snd style) in