cab 0.2.4 → 0.2.5
raw patch · 6 files changed
+10/−2 lines, 6 files
Files
- Distribution/Cab/Commands.hs +1/−0
- cab.cabal +1/−1
- src/Commands.hs +2/−0
- src/Options.hs +4/−1
- src/Run.hs +1/−0
- src/Types.hs +1/−0
Distribution/Cab/Commands.hs view
@@ -37,6 +37,7 @@ | OptExecProfile | OptJobs String | OptImport String+ | OptStatic deriving (Eq,Show) ----------------------------------------------------------------
cab.cabal view
@@ -1,5 +1,5 @@ Name: cab-Version: 0.2.4+Version: 0.2.5 Author: Kazu Yamamoto <kazu@iij.ad.jp> Maintainer: Kazu Yamamoto <kazu@iij.ad.jp> License: BSD3
src/Commands.hs view
@@ -28,6 +28,7 @@ ,(SwLibProfile, Solo "--enable-library-profiling --ghc-options=\"-fprof-auto -fprof-cafs\"") ,(SwExecProfile, Solo "--enable-executable-profiling --ghc-options=\"-fprof-auto -fprof-cafs\"") ,(SwJobs, WithEqArg "--jobs")+ ,(SwStatic, Solo "--disable-shared") ] , manual = Just "[<package> [<ver>]]" }@@ -62,6 +63,7 @@ ,(SwBench, Solo "--enable-benchmarks") ,(SwLibProfile, Solo "--enable-library-profiling --ghc-options=\"-fprof-auto -fprof-cafs\"") ,(SwExecProfile, Solo "--enable-executable-profiling --ghc-options=\"-fprof-auto -fprof-cafs\"")+ ,(SwStatic, Solo "--disable-shared") ] , manual = Nothing }
src/Options.hs view
@@ -45,10 +45,13 @@ , Option ['i'] ["import"] (ReqArg OptImport "<dir>:<dir>") "Add module import paths"+ , Option ['s'] ["static"]+ (NoArg OptStatic)+ "Create static libraries only" , Option ['h'] ["help"] (NoArg OptHelp) "Show help message" ] optionDB :: OptionDB-optionDB = zip [SwNoharm,SwRecursive,SwAll,SwInfo,SwFlag,SwTest,SwBench,SwDepsOnly,SwLibProfile,SwExecProfile,SwJobs,SwImport] getOptDB+optionDB = zip [SwNoharm,SwRecursive,SwAll,SwInfo,SwFlag,SwTest,SwBench,SwDepsOnly,SwLibProfile,SwExecProfile,SwJobs,SwImport,SwStatic] getOptDB
src/Run.hs view
@@ -22,6 +22,7 @@ toSwitch OptExecProfile = SwExecProfile toSwitch (OptJobs _) = SwJobs toSwitch (OptImport _) = SwImport+toSwitch OptStatic = SwStatic toSwitch _ = error "toSwitch" ----------------------------------------------------------------
src/Types.hs view
@@ -21,6 +21,7 @@ | SwExecProfile | SwJobs | SwImport+ | SwStatic deriving (Eq,Show) ----------------------------------------------------------------