Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
compilerVersion: 9.12.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.10.2
- compiler: ghc-9.10.3
compilerKind: ghc
compilerVersion: 9.10.2
compilerVersion: 9.10.3
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.8.4
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.6

- Use automatic flags for compatibility conditionals

# 1.0.5

- Support GHC-8.6.5..GHC-9.10.1
Expand Down
32 changes: 27 additions & 5 deletions binary-orphans.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12
name: binary-orphans
version: 1.0.5.1
version: 1.0.6
synopsis: Compatibility package for binary; provides instances
category: Data, Binary, Parsing, Compatibility
description:
Expand All @@ -23,7 +23,7 @@ tested-with:
|| ==9.4.8
|| ==9.6.6
|| ==9.8.4
|| ==9.10.2
|| ==9.10.3
|| ==9.12.4
|| ==9.14.1

Expand All @@ -33,6 +33,16 @@ source-repository head
type: git
location: https://github.com/phadej/binary-orphans.git

flag base-ge-4-16
description: @base >=4.16@ (GHC-9.2)
default: True
manual: False

flag base-ge-4-17
description: @base >=4.17@ (GHC-9.4)
default: True
manual: False

library
default-language: Haskell2010
hs-source-dirs: src
Expand All @@ -43,12 +53,24 @@ library
base >=4.12.0.0 && <4.23
, binary >=0.8.6.0 && <0.8.10

if !impl(ghc >=9.2)
if !flag(base-ge-4-16)
build-depends: OneTuple >=0.4.2 && <0.5

if impl(ghc >=8.0 && <9.4)
if !flag(base-ge-4-17)
build-depends: data-array-byte >=0.1.0.1 && <0.2

if flag(base-ge-4-16)
build-depends: base >=4.16

else
build-depends: base <4.16

if flag(base-ge-4-17)
build-depends: base >=4.17

else
build-depends: base <4.17

test-suite binary-orphans-test
default-language: Haskell2010
type: exitcode-stdio-1.0
Expand All @@ -64,5 +86,5 @@ test-suite binary-orphans-test
, tasty >=0.10.1.2 && <1.6
, tasty-quickcheck >=0.8.3.2 && <0.12

if impl(ghc >=8.0 && <9.4)
if !flag(base-ge-4-17)
build-depends: data-array-byte
Loading