From db0fcdbe140340e795e48712185dcb873445949e Mon Sep 17 00:00:00 2001 From: konsumlamm Date: Fri, 6 Mar 2026 12:27:17 +0100 Subject: [PATCH] Update .cabal file --- .hgignore | 7 ------ binary.cabal | 47 ++++++++++------------------------------ src/Data/Binary/Class.hs | 5 +---- 3 files changed, 12 insertions(+), 47 deletions(-) delete mode 100644 .hgignore diff --git a/.hgignore b/.hgignore deleted file mode 100644 index f136aeff..00000000 --- a/.hgignore +++ /dev/null @@ -1,7 +0,0 @@ -^dist$ -syntax: glob -.*.swp -*~ -\#* -.cabal-sandbox -cabal.sandbox.config diff --git a/binary.cabal b/binary.cabal index bbc40bce..5f305ede 100644 --- a/binary.cabal +++ b/binary.cabal @@ -13,8 +13,8 @@ version: 0.8.9.2 license: BSD-3-Clause license-file: LICENSE author: Lennart Kolmodin -maintainer: Lennart Kolmodin, Don Stewart -homepage: https://github.com/kolmodin/binary +maintainer: konsumlamm +homepage: https://github.com/haskell/binary description: Efficient, pure binary serialisation using lazy ByteStrings. Haskell values may be encoded to and from binary formats, written to disk as binary, or sent over the network. @@ -38,10 +38,10 @@ extra-doc-files: source-repository head type: git - location: git://github.com/kolmodin/binary.git + location: https://github.com/haskell/binary.git library - build-depends: base >= 4.5.0.0 && < 5, bytestring >= 0.10.4, containers, array + build-depends: base >= 4.9 && < 5, bytestring >= 0.10.4, containers, array hs-source-dirs: src exposed-modules: Data.Binary, Data.Binary.Put, @@ -53,9 +53,6 @@ library Data.Binary.Internal, Data.Binary.Generic, Data.Binary.FloatCast - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim ghc-options: -O2 -Wall -fliberate-case-threshold=1000 @@ -71,7 +68,7 @@ test-suite qc Action Arbitrary build-depends: - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, base-orphans >=0.8.1 && <0.9, binary, bytestring >= 0.10.4, @@ -83,18 +80,14 @@ test-suite qc -- build dependencies from using binary source rather than depending on the library build-depends: array, containers ghc-options: -Wall -O2 -threaded - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 - test-suite read-write-file type: exitcode-stdio-1.0 hs-source-dirs: tests main-is: File.hs build-depends: - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, binary, bytestring >= 0.10.4, Cabal, @@ -105,9 +98,6 @@ test-suite read-write-file -- build dependencies from using binary source rather than depending on the library build-depends: array, containers ghc-options: -Wall - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 @@ -118,7 +108,7 @@ benchmark throughput other-modules: MemBench build-depends: - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, binary, bytestring >= 0.10.4 -- build dependencies from using binary source rather than depending on the library @@ -126,9 +116,6 @@ benchmark throughput c-sources: benchmarks/CBenchmark.c include-dirs: benchmarks ghc-options: -O2 - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 benchmark get @@ -137,7 +124,7 @@ benchmark get main-is: Get.hs build-depends: attoparsec, - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, binary, bytestring >= 0.10.4, cereal, @@ -147,9 +134,6 @@ benchmark get -- build dependencies from using binary source rather than depending on the library build-depends: array, containers ghc-options: -O2 -Wall - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 benchmark put @@ -157,7 +141,7 @@ benchmark put hs-source-dirs: benchmarks main-is: Put.hs build-depends: - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, binary, bytestring >= 0.10.4, deepseq, @@ -165,9 +149,6 @@ benchmark put -- build dependencies from using binary source rather than depending on the library build-depends: array, containers ghc-options: -O2 -Wall - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 benchmark generics-bench @@ -175,7 +156,7 @@ benchmark generics-bench hs-source-dirs: benchmarks main-is: GenericsBench.hs build-depends: - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, binary, bytestring >= 0.10.4, -- The benchmark already depended on 'generic-deriving' transitively. That's @@ -195,9 +176,6 @@ benchmark generics-bench -- build dependencies from using binary source rather than depending on the library build-depends: array, containers ghc-options: -O2 -Wall - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 benchmark builder @@ -205,7 +183,7 @@ benchmark builder hs-source-dirs: benchmarks main-is: Builder.hs build-depends: - base >= 4.5.0.0 && < 5, + base >= 4.9 && < 5, binary, bytestring >= 0.10.4, deepseq, @@ -214,7 +192,4 @@ benchmark builder -- build dependencies from using binary source rather than depending on the library build-depends: array, containers ghc-options: -O2 - if impl(ghc <= 7.6) - -- prior to ghc-7.4 generics lived in ghc-prim - build-depends: ghc-prim default-language: Haskell2010 diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs index 0b797431..c020d503 100644 --- a/src/Data/Binary/Class.hs +++ b/src/Data/Binary/Class.hs @@ -3,11 +3,8 @@ {-# LANGUAGE GADTs #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE PatternGuards #-} -{-# LANGUAGE Trustworthy #-} - -#if __GLASGOW_HASKELL__ >= 706 {-# LANGUAGE PolyKinds #-} -#endif +{-# LANGUAGE Trustworthy #-} #if MIN_VERSION_base(4,16,0) #define HAS_TYPELITS_CHAR