cdeps 0.1.1.5 → 0.1.1.6
raw patch · 3 files changed
+15/−5 lines, 3 filessetup-changedPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Setup.hs +0/−2
- app/Main.hs +14/−2
- cdeps.cabal +1/−1
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
app/Main.hs view
@@ -14,12 +14,20 @@ , help "Directories for inclusions." ] -data Command = Dump FilePath [FilePath]+noRecurse :: Parser Bool+noRecurse = switch $ mconcat+ [ long "no-recurse"+ , short 'r'+ , help "Do not search for dependencies recursively."+ ] +data Command = Dump FilePath [FilePath] Bool+ dump :: Parser Command dump = Dump <$> target <*> includes'+ <*> noRecurse cCompletions :: Mod ArgumentFields a cCompletions = completer . bashCompleter $ "file -X '!*.c' -o plusdirs"@@ -30,8 +38,12 @@ <> help "C source file" <> cCompletions) +go :: ([FilePath] -> FilePath -> IO [FilePath]) -> [FilePath] -> FilePath -> IO ()+go = ((traverse_ putStrLn <=<) .)+ run :: Command -> IO ()-run (Dump cSrc is) = (traverse_ putStrLn <=< getAll is) cSrc+run (Dump cSrc is False) = go getAll is cSrc+run (Dump cSrc is True) = go getCDepends is cSrc versionInfo :: Parser (a -> a) versionInfo = infoOption ("cdeps version: " ++ showVersion version) (short 'V' <> long "version" <> help "Show version")
cdeps.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: cdeps-version: 0.1.1.5+version: 0.1.1.6 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale