git.iko.soy/typeable/cabal2nix
on master help sign in
src/Cabal2Nix/Hackage.hs: fix hlint warning
commit34ebd7676379d13dc2686ddbc0552c86fe156c8e authorPeter Simons <simons@cryp.to> dateMon 2 Dec 2013, 20:25 (13 years ago) parentfc5f64a
1 file changed+1−1
src/Cabal2Nix/Hackage.hs+1−1
src/Cabal2Nix/Hackage.hs+1−1
@@ -45,7 +45,7 @@ hashPackage pkg = do
4545 where getHackageHash = do
4646 let command = "exec nix-prefetch-url 2>/dev/tty " ++ hackagePath pkg TarGz
4747 handle handlePrefetchError (readProcess "bash" ["-c", command] "")
48− handlePrefetchError (SomeException _) = do
48+ handlePrefetchError (SomeException _) =
4949 error $ "\nError: Cannot compute hash. (Not a hackage project?)\n" ++
5050 "Specify hash explicitly via --sha256 and add appropriate \"src\" attribute " ++
5151 "to resulting nix expression."