packages feed

ghc-pkg-autofix 0.2.0 → 0.2.0.1

raw patch · 2 files changed

+8/−6 lines, 2 files

Files

Main.hs view
@@ -91,8 +91,10 @@  getConfDir :: Maybe FilePath -> IO FilePath getConfDir mfp = do-  src <- case mfp of-           Nothing -> readProcess "ghc-pkg" ["list", "--user"] ""-           Just fp -> readProcess "cabal-dev" ["-s", fp, "ghc-pkg", "list", "--user"] ""-  let ans = init $ head $ drop 1 $ filter ("/" `isPrefixOf`) $ lines src-  return ans+  case mfp of+    Nothing -> do+      src <- readProcess "ghc-pkg" ["list", "--user"] ""+      return $ init $ head $ filter ("/" `isPrefixOf`) $ lines src+    Just fp -> do+      src <- readProcess "cabal-dev" ["-s", fp, "ghc-pkg", "list", "--user"] ""+      return $ init $ head $ drop 1 $ filter ("/" `isPrefixOf`) $ lines src
ghc-pkg-autofix.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.2.0+Version:             0.2.0.1  -- A short (one-line) description of the package. Synopsis:            Simple utility to fix BROKEN package dependencies for cabal-install.