fay 0.18.0.1 → 0.18.0.2
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
- fay.cabal +1/−1
- src/main/Main.hs +2/−2
fay.cabal view
@@ -1,5 +1,5 @@ name: fay-version: 0.18.0.1+version: 0.18.0.2 synopsis: A compiler for Fay, a Haskell subset that compiles to JavaScript. description: Fay is a proper subset of Haskell which is type-checked with GHC, and compiled to JavaScript. It is lazy, pure, has a Fay monad,
src/main/Main.hs view
@@ -32,7 +32,6 @@ , optVersion :: Bool , optOutput :: Maybe String , optPretty :: Bool- , optFiles :: [String] , optOptimize :: Bool , optGClosure :: Bool , optPackageConf :: Maybe String@@ -45,6 +44,7 @@ , optTypecheckOnly :: Bool , optRuntimePath :: Maybe FilePath , optSourceMap :: Bool+ , optFiles :: [String] } -- | Main entry point.@@ -108,7 +108,6 @@ <*> switch (long "version" <> help "Output version number") <*> optional (strOption (long "output" <> short 'o' <> metavar "file" <> help "Output to specified file")) <*> switch (long "pretty" <> short 'p' <> help "Pretty print the output")- <*> arguments Just (metavar "<hs-file>...") <*> switch (long "optimize" <> short 'O' <> help "Apply optimizations to generated code") <*> switch (long "closure" <> help "Provide help with Google Closure") <*> optional (strOption (long "package-conf" <> help "Specify the Cabal package config file"))@@ -122,6 +121,7 @@ <*> switch (long "typecheck-only" <> help "Only invoke GHC for typechecking, don't produce any output") <*> optional (strOption $ long "runtime-path" <> help "Custom path to the runtime so you don't have to reinstall fay when modifying it") <*> switch (long "sourcemap" <> help "Produce a source map in <outfile>.map")+ <*> arguments Just (metavar "<hs-file>...") where strsOption m = nullOption (m <> reader (ReadM . Right . wordsBy (== ',')) <> value []) -- | Make incompatible options.