Skip to content

Commit

Permalink
Add --pedantic arg to stack ghci/stack ide
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Sep 11, 2015
1 parent ee83b8a commit ac59fd0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions src/Stack/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,14 @@ ghciOptsParser = GhciOpts
<*> fmap concat (many (argsOption (long "ghc-options" <>
metavar "OPTION" <>
help "Additional options passed to GHCi")))
<*> many (textOption (long "build-ghc-options" <>
metavar "OPTION" <>
help "Additional options passed to GHC"))
<*> ((++)
<$> flag [] ["-Wall", "-Werror"]
( long "pedantic"
<> help "Turn on -Wall and -Werror (note: option name may change in the future"
)
<*> many (textOption (long "ghc-options" <>
metavar "OPTION" <>
help "Additional options passed to GHC")))
<*> optional
(strOption (long "with-ghc" <>
metavar "GHC" <>
Expand Down
11 changes: 8 additions & 3 deletions src/main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,14 @@ main = withInterpreterArgs stackProgName $ \args isInterpreter -> do
metavar "OPTION" <>
help "Additional options passed to GHCi" <>
value [])
<*> many (textOption (long "build-ghc-options" <>
metavar "OPTION" <>
help "Additional options passed to GHC")))
<*> ((++)
<$> flag [] ["-Wall", "-Werror"]
( long "pedantic"
<> help "Turn on -Wall and -Werror (note: option name may change in the future"
)
<*> many (textOption (long "ghc-options" <>
metavar "OPTION" <>
help "Additional options passed to GHC"))))
addCommand
"packages"
"List all available local loadable packages"
Expand Down

0 comments on commit ac59fd0

Please sign in to comment.