Skip to content

Commit

Permalink
Use PreferHash as default GenerateHashStrategy
Browse files Browse the repository at this point in the history
This will change to PreferNoHash with 0.34.0.
  • Loading branch information
sol committed May 14, 2020
1 parent 8aebc12 commit e2b1498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hpack.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ getOptions defaultPackageConfig args = do
let generateHash = case hash of
Just True -> ForceHash
Just False -> ForceNoHash
Nothing -> PreferNoHash
Nothing -> PreferHash
return $ Just (verbose, Options defaultDecodeOptions {decodeOptionsTarget = file} force generateHash toStdout)
ParseError -> do
printHelp
Expand All @@ -120,7 +120,7 @@ hpack :: Verbose -> Options -> IO ()
hpack verbose options = hpackResult options >>= printResult verbose

defaultOptions :: Options
defaultOptions = Options defaultDecodeOptions NoForce PreferNoHash False
defaultOptions = Options defaultDecodeOptions NoForce PreferHash False

setTarget :: FilePath -> Options -> Options
setTarget target options@Options{..} =
Expand Down

0 comments on commit e2b1498

Please sign in to comment.