Skip to content

Commit d790600

Browse files
Merge pull request #4201 from sol/master
Require hpack >= 0.29.6
2 parents 09d75be + 888f6e4 commit d790600

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ dependencies:
6161
- generic-deriving
6262
- hackage-security
6363
- hashable
64-
- hpack >= 0.29
64+
- hpack >= 0.29.6
6565
- hpc
6666
- http-client
6767
- http-client-tls

src/Stack/Package.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE NoImplicitPrelude #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE LambdaCase #-}
43
{-# LANGUAGE TupleSections #-}
54
{-# LANGUAGE ScopedTypeVariables #-}
@@ -1483,13 +1482,7 @@ hpack pkgDir = do
14831482
config <- view configL
14841483
case configOverrideHpack config of
14851484
HpackBundled -> do
1486-
#if MIN_VERSION_hpack(0,26,0)
1487-
r <- liftIO $ Hpack.hpackResult $ Hpack.setTarget (toFilePath hpackFile) Hpack.defaultOptions
1488-
#elif MIN_VERSION_hpack(0,23,0)
1489-
r <- liftIO $ Hpack.hpackResult Hpack.defaultRunOptions {Hpack.runOptionsConfigDir = Just (toFilePath pkgDir)} Hpack.NoForce
1490-
#else
1491-
r <- liftIO $ Hpack.hpackResult (Just $ toFilePath pkgDir) Hpack.NoForce
1492-
#endif
1485+
r <- liftIO $ Hpack.hpackResult $ Hpack.setProgramName "stack" $ Hpack.setTarget (toFilePath hpackFile) Hpack.defaultOptions
14931486
forM_ (Hpack.resultWarnings r) prettyWarnS
14941487
let cabalFile = styleFile . fromString . Hpack.resultCabalFile $ r
14951488
case Hpack.resultStatus r of

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ flags:
1919
extra-deps:
2020
- Cabal-2.2.0.1@rev:0
2121
- infer-license-0.2.0@rev:0
22-
- hpack-0.29.5@rev:0
22+
- hpack-0.29.6@rev:0
2323
- http-api-data-0.3.8.1@rev:0
2424
- githash-0.1.0.1@rev:0
2525

0 commit comments

Comments
 (0)