Skip to content

Commit 245f989

Browse files
authored
Update .cabal file (#224)
* update maintainer * update git link * update `base` bounds * delete unused `.hgignore` file
1 parent 5448311 commit 245f989

File tree

3 files changed

+12
-47
lines changed

3 files changed

+12
-47
lines changed

.hgignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

binary.cabal

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ version: 0.8.9.2
1313
license: BSD-3-Clause
1414
license-file: LICENSE
1515
author: Lennart Kolmodin <kolmodin@gmail.com>
16-
maintainer: Lennart Kolmodin, Don Stewart <dons00@gmail.com>
17-
homepage: https://github.com/kolmodin/binary
16+
maintainer: konsumlamm <konsumlamm@gmail.com>
17+
homepage: https://github.com/haskell/binary
1818
description: Efficient, pure binary serialisation using lazy ByteStrings.
1919
Haskell values may be encoded to and from binary formats,
2020
written to disk as binary, or sent over the network.
@@ -38,10 +38,10 @@ extra-doc-files:
3838

3939
source-repository head
4040
type: git
41-
location: git://github.com/kolmodin/binary.git
41+
location: https://github.com/haskell/binary.git
4242

4343
library
44-
build-depends: base >= 4.5.0.0 && < 5, bytestring >= 0.10.4, containers, array
44+
build-depends: base >= 4.9 && < 5, bytestring >= 0.10.4, containers, array
4545
hs-source-dirs: src
4646
exposed-modules: Data.Binary,
4747
Data.Binary.Put,
@@ -53,9 +53,6 @@ library
5353
Data.Binary.Internal,
5454
Data.Binary.Generic,
5555
Data.Binary.FloatCast
56-
if impl(ghc <= 7.6)
57-
-- prior to ghc-7.4 generics lived in ghc-prim
58-
build-depends: ghc-prim
5956

6057
ghc-options: -O2 -Wall -fliberate-case-threshold=1000
6158

@@ -71,7 +68,7 @@ test-suite qc
7168
Action
7269
Arbitrary
7370
build-depends:
74-
base >= 4.5.0.0 && < 5,
71+
base >= 4.9 && < 5,
7572
base-orphans >=0.8.1 && <0.9,
7673
binary,
7774
bytestring >= 0.10.4,
@@ -83,18 +80,14 @@ test-suite qc
8380
-- build dependencies from using binary source rather than depending on the library
8481
build-depends: array, containers
8582
ghc-options: -Wall -O2 -threaded
86-
if impl(ghc <= 7.6)
87-
-- prior to ghc-7.4 generics lived in ghc-prim
88-
build-depends: ghc-prim
8983
default-language: Haskell2010
9084

91-
9285
test-suite read-write-file
9386
type: exitcode-stdio-1.0
9487
hs-source-dirs: tests
9588
main-is: File.hs
9689
build-depends:
97-
base >= 4.5.0.0 && < 5,
90+
base >= 4.9 && < 5,
9891
binary,
9992
bytestring >= 0.10.4,
10093
Cabal,
@@ -105,9 +98,6 @@ test-suite read-write-file
10598
-- build dependencies from using binary source rather than depending on the library
10699
build-depends: array, containers
107100
ghc-options: -Wall
108-
if impl(ghc <= 7.6)
109-
-- prior to ghc-7.4 generics lived in ghc-prim
110-
build-depends: ghc-prim
111101
default-language: Haskell2010
112102

113103

@@ -118,17 +108,14 @@ benchmark throughput
118108
other-modules:
119109
MemBench
120110
build-depends:
121-
base >= 4.5.0.0 && < 5,
111+
base >= 4.9 && < 5,
122112
binary,
123113
bytestring >= 0.10.4
124114
-- build dependencies from using binary source rather than depending on the library
125115
build-depends: array, containers
126116
c-sources: benchmarks/CBenchmark.c
127117
include-dirs: benchmarks
128118
ghc-options: -O2
129-
if impl(ghc <= 7.6)
130-
-- prior to ghc-7.4 generics lived in ghc-prim
131-
build-depends: ghc-prim
132119
default-language: Haskell2010
133120

134121
benchmark get
@@ -137,7 +124,7 @@ benchmark get
137124
main-is: Get.hs
138125
build-depends:
139126
attoparsec,
140-
base >= 4.5.0.0 && < 5,
127+
base >= 4.9 && < 5,
141128
binary,
142129
bytestring >= 0.10.4,
143130
cereal,
@@ -147,35 +134,29 @@ benchmark get
147134
-- build dependencies from using binary source rather than depending on the library
148135
build-depends: array, containers
149136
ghc-options: -O2 -Wall
150-
if impl(ghc <= 7.6)
151-
-- prior to ghc-7.4 generics lived in ghc-prim
152-
build-depends: ghc-prim
153137
default-language: Haskell2010
154138

155139
benchmark put
156140
type: exitcode-stdio-1.0
157141
hs-source-dirs: benchmarks
158142
main-is: Put.hs
159143
build-depends:
160-
base >= 4.5.0.0 && < 5,
144+
base >= 4.9 && < 5,
161145
binary,
162146
bytestring >= 0.10.4,
163147
deepseq,
164148
tasty-bench
165149
-- build dependencies from using binary source rather than depending on the library
166150
build-depends: array, containers
167151
ghc-options: -O2 -Wall
168-
if impl(ghc <= 7.6)
169-
-- prior to ghc-7.4 generics lived in ghc-prim
170-
build-depends: ghc-prim
171152
default-language: Haskell2010
172153

173154
benchmark generics-bench
174155
type: exitcode-stdio-1.0
175156
hs-source-dirs: benchmarks
176157
main-is: GenericsBench.hs
177158
build-depends:
178-
base >= 4.5.0.0 && < 5,
159+
base >= 4.9 && < 5,
179160
binary,
180161
bytestring >= 0.10.4,
181162
-- The benchmark already depended on 'generic-deriving' transitively. That's
@@ -195,17 +176,14 @@ benchmark generics-bench
195176
-- build dependencies from using binary source rather than depending on the library
196177
build-depends: array, containers
197178
ghc-options: -O2 -Wall
198-
if impl(ghc <= 7.6)
199-
-- prior to ghc-7.4 generics lived in ghc-prim
200-
build-depends: ghc-prim
201179
default-language: Haskell2010
202180

203181
benchmark builder
204182
type: exitcode-stdio-1.0
205183
hs-source-dirs: benchmarks
206184
main-is: Builder.hs
207185
build-depends:
208-
base >= 4.5.0.0 && < 5,
186+
base >= 4.9 && < 5,
209187
binary,
210188
bytestring >= 0.10.4,
211189
deepseq,
@@ -214,7 +192,4 @@ benchmark builder
214192
-- build dependencies from using binary source rather than depending on the library
215193
build-depends: array, containers
216194
ghc-options: -O2
217-
if impl(ghc <= 7.6)
218-
-- prior to ghc-7.4 generics lived in ghc-prim
219-
build-depends: ghc-prim
220195
default-language: Haskell2010

src/Data/Binary/Class.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
{-# LANGUAGE GADTs #-}
44
{-# LANGUAGE ScopedTypeVariables #-}
55
{-# LANGUAGE PatternGuards #-}
6-
{-# LANGUAGE Trustworthy #-}
7-
8-
#if __GLASGOW_HASKELL__ >= 706
96
{-# LANGUAGE PolyKinds #-}
10-
#endif
7+
{-# LANGUAGE Trustworthy #-}
118

129
#if MIN_VERSION_base(4,16,0)
1310
#define HAS_TYPELITS_CHAR

0 commit comments

Comments
 (0)