Skip to content

Commit

Permalink
Make it build with ghc-9.10
Browse files Browse the repository at this point in the history
Also update the version of `tar` being used.
  • Loading branch information
erikd committed Jul 26, 2024
1 parent cfc8815 commit b845c6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hedgehog-extras.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ source-repository head
common aeson { build-depends: aeson >= 2.0.0.0 }
common aeson-pretty { build-depends: aeson-pretty >= 0.8.5 }
common async { build-depends: async }
common base { build-depends: base >= 4.12 && < 4.20 }
common base { build-depends: base >= 4.12 && < 4.21 }
common bytestring { build-depends: bytestring }
common deepseq { build-depends: deepseq }
common Diff { build-depends: Diff }
Expand All @@ -38,7 +38,7 @@ common network { build-depends: network
common process { build-depends: process }
common resourcet { build-depends: resourcet }
common stm { build-depends: stm }
common tar { build-depends: tar < 0.6 }
common tar { build-depends: tar ^>= 0.6 }
common tasty { build-depends: tasty }
common tasty-hedgehog { build-depends: tasty-hedgehog }
common tasty-quickcheck { build-depends: tasty-quickcheck }
Expand Down
2 changes: 1 addition & 1 deletion src/Hedgehog/Extras/Test/Network.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ downloadToFile url path = GHC.withFrozenCallStack $ do
H.note_ $ "Downloading " <> url <> " to " <> path
H.evalIO $ HTTP.simpleHttp url >>= LBS.writeFile path

tarErrors :: TAR.Entries (Either TAR.FormatError TAR.TarBombError) -> [Either TAR.FormatError TAR.TarBombError]
tarErrors :: TAR.GenEntries tarPath linkTarget e -> [e]
tarErrors entries = TAR.foldEntries (flip const) id (:) entries []

-- | Download a github commit to a temporary directory, extract it and return the path to the extracted directory.
Expand Down

0 comments on commit b845c6a

Please sign in to comment.