Skip to content

Commit

Permalink
hackage-security: import from tar-0.6 in a way compatible with tar-0.5
Browse files Browse the repository at this point in the history
This requires importing constructors independent of their data
type (which changed from 0.5 to 0.6), via the `pattern` syntax.

Consequently, we drop GHC 7.6 which does not have `PatternSynonyms`.
  • Loading branch information
andreasabel committed Dec 15, 2023
1 parent 42c210c commit 009ab8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions hackage-security/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
See also http://pvp.haskell.org/faq

0.6.2.4
-------

* Allow `tar-0.6`
* Drop support for GHC < 7.8 in favor of `PatternSynonyms`
* Tested with GHC 7.10 - 9.8

0.6.2.3
-------

Expand Down
7 changes: 4 additions & 3 deletions hackage-security/hackage-security.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cabal-version: 1.12
name: hackage-security
version: 0.6.2.3
x-revision: 9
version: 0.6.2.4

synopsis: Hackage security library
description: The hackage security library provides both server and
Expand Down Expand Up @@ -127,7 +126,8 @@ library
Hackage.Security.Util.TypedEmbedded
MyPrelude
-- We support ghc 7.4 (bundled with Cabal 1.14) and up
build-depends: base >= 4.5 && < 4.20,
build-depends: base >= 4.7 && < 4.20,
-- PatternSynonyms are only available since GHC 7.8 (base 4.7)
base16-bytestring >= 0.1.1 && < 1.1,
base64-bytestring >= 1.0 && < 1.3,
bytestring >= 0.9 && < 0.13,
Expand Down Expand Up @@ -185,6 +185,7 @@ library
NamedFieldPuns
NoImplicitPrelude
NoMonomorphismRestriction
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Control.Exception
import Control.Monad
import Control.Monad.IO.Class
import Data.Maybe
import Codec.Archive.Tar (Entries(..))
import Codec.Archive.Tar (Entries, pattern Done, pattern Fail, pattern Next)
import Codec.Archive.Tar.Index (TarIndex, IndexBuilder, TarEntryOffset)
import qualified Codec.Archive.Tar as Tar
import qualified Codec.Archive.Tar.Index as TarIndex
Expand Down

0 comments on commit 009ab8b

Please sign in to comment.