Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

warn if cabal-src not installed. closes #2

  • Loading branch information...
commit d98da842f0f2bee5bd6df5b7da202f6dc34d40ae 1 parent 18ae2d0
@gregwebs gregwebs authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 main.hs
View
9 main.hs
@@ -50,11 +50,10 @@ main = do
let (_:args) = noDevArgs
packageSources <- readPackages True "."
- ifCabal cabal $
- when (length (packages packageSources) == length (hackages packageSources)) $ do
- mPath <- which "cabal-src-install"
- when (isNothing mPath) $
- errorExit "please run: cabal install cabal-src"
+ ifCabal cabal $ do
+ mPath <- which "cabal-src-install"
+ when (isNothing mPath) $
+ errorExit "please run: cabal install cabal-src"
let installs = packageList packageSources
echo "Installing packages:"
Please sign in to comment.
Something went wrong with that request. Please try again.