@@ -86,9 +86,9 @@ externsFile :: Term (Maybe FilePath)
86externsFile = value $ opt Nothing $ (optInfo [ "e", "externs" ])
86externsFile = value $ opt Nothing $ (optInfo [ "e", "externs" ])
87 { optDoc = "The output .e.ps file" }
87 { optDoc = "The output .e.ps file" }
89−tco :: Term Bool
89+noTco :: Term Bool
90−tco = value $ flag $ (optInfo [ "tco" ])
90+noTco = value $ flag $ (optInfo [ "no-tco" ])
91− { optDoc = "Perform tail call optimizations" }
91+ { optDoc = "Disable tail call optimizations" }
93performRuntimeTypeChecks :: Term Bool
93performRuntimeTypeChecks :: Term Bool
94performRuntimeTypeChecks = value $ flag $ (optInfo [ "runtime-type-checks" ])
94performRuntimeTypeChecks = value $ flag $ (optInfo [ "runtime-type-checks" ])
@@ -98,9 +98,9 @@ noPrelude :: Term Bool
98noPrelude = value $ flag $ (optInfo [ "no-prelude" ])
98noPrelude = value $ flag $ (optInfo [ "no-prelude" ])
99 { optDoc = "Omit the Prelude" }
99 { optDoc = "Omit the Prelude" }
101−magicDo :: Term Bool
101+noMagicDo :: Term Bool
102−magicDo = value $ flag $ (optInfo [ "magic-do" ])
102+noMagicDo = value $ flag $ (optInfo [ "no-magic-do" ])
103− { optDoc = "Overload the do keyword to generate efficient code specifically for the Eff monad." }
103+ { optDoc = "Disable the optimization that overloads the do keyword to generate efficient code specifically for the Eff monad." }
105runMain :: Term (Maybe String)
105runMain :: Term (Maybe String)
106runMain = value $ defaultOpt (Just "Main") Nothing $ (optInfo [ "main" ])
106runMain = value $ defaultOpt (Just "Main") Nothing $ (optInfo [ "main" ])
@@ -123,7 +123,7 @@ codeGenModules = value $ optAll [] $ (optInfo [ "codegen" ])
123 { optDoc = "A list of modules for which Javascript and externs should be generated. This argument can be used multiple times." }
123 { optDoc = "A list of modules for which Javascript and externs should be generated. This argument can be used multiple times." }
125options :: Term P.Options
125options :: Term P.Options
126−options = P.Options <$> tco <*> performRuntimeTypeChecks <*> magicDo <*> runMain <*> noOpts <*> browserNamespace <*> dceModules <*> codeGenModules
126+options = P.Options <$> noTco <*> performRuntimeTypeChecks <*> noMagicDo <*> runMain <*> noOpts <*> browserNamespace <*> dceModules <*> codeGenModules
128stdInOrInputFiles :: FilePath -> Term (Maybe [FilePath])
128stdInOrInputFiles :: FilePath -> Term (Maybe [FilePath])
129stdInOrInputFiles prelude = combine <$> useStdIn <*> (not <$> noPrelude) <*> inputFiles
129stdInOrInputFiles prelude = combine <$> useStdIn <*> (not <$> noPrelude) <*> inputFiles