Commit 34067cd7 authored by Moses Nakamura's avatar Moses Nakamura

omg it's magic

parent 4feb123d
......@@ -36,8 +36,7 @@ import CxxGenerator
main::IO()
main = do
args <- getArgs
let (lang : files) = args
(lang : files) <- getArgs
handleFiles (generatorFnFor lang) files
handleFiles (Right fn) files = mapM_ (handleFile fn) files
......@@ -59,7 +58,7 @@ generatorFnFor lang = case lang of
LZ.writeFile (filename ++ ".h") header
source <- generateCxxSource desc
LZ.writeFile (filename ++ ".c++") source)
_ -> Left "Only c++ is supported for now"
_ -> Left "Only c++ is supported for now"
compareErrors a b = compare (errorPos a) (errorPos b)
......
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