Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 10, 2017
1 parent 017b44c commit ec4ecca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stack/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,11 @@ resolvePackageLocation menv projRoot (PLRemote url remotePackageType) = do
-- TODO: dedupe with code for snapshot hash?
name = T.unpack $ decodeUtf8 $ S.take 12 $ B64URL.encode $ SHA256.hash $ encodeUtf8 nameBeforeHashing
root = projRoot </> workDir </> $(mkRelDir "downloaded")
fileExtension = case remotePackageType of
fileExtension' = case remotePackageType of
RPTHttp -> ".http-archive"
_ -> ".unused"

fileRel <- parseRelFile $ name ++ fileExtension
fileRel <- parseRelFile $ name ++ fileExtension'
dirRel <- parseRelDir name
dirRelTmp <- parseRelDir $ name ++ ".tmp"
let file = root </> fileRel
Expand Down

0 comments on commit ec4ecca

Please sign in to comment.