Append final newline to _stub.{c,h} output
-- turn out to be empty, in which case no file should be created.
outputForeignStubs_help fname "" injects = return False
outputForeignStubs_help fname doc_str injects
-- turn out to be empty, in which case no file should be created.
outputForeignStubs_help fname "" injects = return False
outputForeignStubs_help fname doc_str injects
- = do writeFile fname (injects ++ doc_str)
+ = do writeFile fname (injects ++ doc_str ++ "\n")