Skip to content

Commit c9e03bc

Browse files
authored
Update .cabal (#182)
* Bump version * Bump `base` version. * Add some of the extensions we require. * Turn off `-feager-blackholing` for GHC 8.2 and above. * Update changelog
1 parent 60ced06 commit c9e03bc

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

CHANGES.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
## next
1+
## 0.2.9.0
22

33
* Add `Ord/Ord1/Ord2` instances.
4-
* Remove support for GHC versions before 7.8. (Thanks, Dmitry Ivanov!)
4+
5+
* Remove support for GHC versions before 7.8. (Thanks, Dmitry Ivanov)
6+
57
* Use `SmallArray#` instead of `Array#` for GHC versions 7.10 and above.
6-
(Thanks, Dmitry Ivanov!)
8+
(Thanks, Dmitry Ivanov)
9+
10+
* Adjust for `Semigroup => Monoid` proposal implementation.
711

812
## 0.2.8.0
913

unordered-containers.cabal

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: unordered-containers
2-
version: 0.2.8.0
2+
version: 0.2.9.0
33
synopsis: Efficient hashing-based container types
44
description:
55
Efficient hashing-based container types. The containers have been
@@ -39,15 +39,24 @@ library
3939
Data.HashMap.UnsafeShift
4040

4141
build-depends:
42-
base >= 4 && < 5,
42+
base >= 4.7 && < 5,
4343
deepseq >= 1.1,
4444
hashable >= 1.0.1.1 && < 1.3
4545

46+
other-extensions:
47+
RoleAnnotations,
48+
UnboxedTuples,
49+
ScopedTypeVariables,
50+
MagicHash,
51+
BangPatterns
52+
4653
ghc-options: -Wall -O2 -fwarn-tabs -ferror-spans
47-
-- This is absolutely essential for correctness due to the
48-
-- referential-transparency-breaking mutability in unsafeInsertWith. See
49-
-- #147 and GHC #13615 for details.
50-
ghc-options: -feager-blackholing
54+
55+
if impl (ghc < 8.2)
56+
-- This is absolutely necessary (but not sufficient) for correctness due to
57+
-- the referential-transparency-breaking mutability in unsafeInsertWith. See
58+
-- #147 and GHC #13615 for details. The bug was fixed in GHC 8.2.
59+
ghc-options: -feager-blackholing
5160
if flag(debug)
5261
cpp-options: -DASSERTS
5362

0 commit comments

Comments
 (0)