Commit 4feb123d authored by Moses Nakamura's avatar Moses Nakamura

remembered some list sugar, stripped a println

parent 38481431
...@@ -37,9 +37,7 @@ import CxxGenerator ...@@ -37,9 +37,7 @@ import CxxGenerator
main::IO() main::IO()
main = do main = do
args <- getArgs args <- getArgs
let lang = head args let (lang : files) = args
putStrLn lang
let files = tail args
handleFiles (generatorFnFor lang) files handleFiles (generatorFnFor lang) files
handleFiles (Right fn) files = mapM_ (handleFile fn) files handleFiles (Right fn) files = mapM_ (handleFile fn) files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment