Commit 82445dea authored by Francesco Gazzetta's avatar Francesco Gazzetta
Browse files

changed if chain to guards

parent 36ccda50
......@@ -788,9 +788,9 @@ libAbiHash verbosity _pkg_descr lbi lib clbi = do
ghcOptProfilingMode = toFlag True,
ghcOptExtra = toNubListR (ghcjsProfOptions libBi)
ghcArgs = if withVanillaLib lbi then vanillaArgs
else if withProfLib lbi then profArgs
else error "libAbiHash: Can't find an enabled library way"
ghcArgs | withVanillaLib lbi = vanillaArgs
| withProfLib lbi = profArgs
| otherwise = error "libAbiHash: Can't find an enabled library way"
(ghcjsProg, _) <- requireProgram verbosity ghcjsProgram (withPrograms lbi)
hash <- getProgramInvocationOutput verbosity
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment