Expire unreferenced switches.

This commit is contained in:
HIBINO Kei 2011-11-14 19:28:34 +09:00
parent 748c57f0c1
commit 21c5072e37
2 changed files with 0 additions and 10 deletions

View File

@ -45,8 +45,6 @@ defaultOptions = Options {
, hlintOpts = []
, ghcOpts = []
, operators = False
, packageConfs = []
, useUserPackageConf = True
}
argspec :: [OptDescr (Options -> Options)]
@ -62,12 +60,6 @@ argspec = [ Option "l" ["tolisp"]
, Option "o" ["operators"]
(NoArg (\opts -> opts { operators = True }))
"print operators, too"
, Option "" ["package-conf"]
(ReqArg (\p opts -> opts { packageConfs = p : packageConfs opts }) "path")
"additional package database"
, Option "" ["no-user-package-conf"]
(NoArg (\opts -> opts{ useUserPackageConf = False }))
"do not read the user package database"
]
parseArgs :: [OptDescr (Options -> Options)] -> [String] -> (Options, [String])

View File

@ -15,8 +15,6 @@ data Options = Options {
, hlintOpts :: [String]
, ghcOpts :: [String]
, operators :: Bool
, packageConfs :: [FilePath]
, useUserPackageConf :: Bool
}
withGHC :: (MonadPlus m) => Ghc (m a) -> IO (m a)