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
43 changes: 43 additions & 0 deletions .github/workflows/haskell-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Haskell CI

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ghc: ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.8', '9.4.8', '9.6.7', '9.8.4', '9.10.3', '9.12.2', '9.14.1']
steps:
- uses: actions/checkout@v6
- uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- name: cache
uses: actions/cache@v5
with:
path: |
${{ steps.setup-haskell.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}
- name: Rename package to allow building test suite
run: |
sed -i 's/\(name:\s*binary\)/\1-cabal-is-broken/' binary.cabal
sed -i 's/\(binary\),/\1-cabal-is-broken,/' binary.cabal
- name: Build
run: cabal build
- name: Build tests
run: cabal build --enable-tests
- name: Test
run: cabal test --enable-tests
# benchmarks currently don't compile for GHC 9.14
# - name: Build benchmarks
# run: cabal build --enable-benchmarks
# - name: Bench
# run: cabal bench --enable-benchmarks
- name: Haddock
run: cabal haddock
257 changes: 0 additions & 257 deletions .github/workflows/haskell-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion binary.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ synopsis: Binary serialisation for Haskell values using lazy ByteStrings
category: Data, Parsing
stability: provisional
build-type: Simple
tested-with: GHC == 8.0.2, GHC ==8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.6, GHC == 9.4.4, GHC == 9.6.3, GHC == 9.8.1
tested-with: GHC == 8.0.2, GHC ==8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.8, GHC == 9.4.8, GHC == 9.6.7, GHC == 9.8.4, GHC == 9.10.3, GHC == 9.12.2, GHC == 9.14.1
extra-source-files:
tools/derive/*.hs
-- from the benchmark 'bench'
Expand Down
2 changes: 1 addition & 1 deletion tests/QC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#endif
import Data.Int
import Data.Ratio
import Data.Typeable

Check warning on line 24 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (8.0.2)

The import of ‘Data.Typeable’ is redundant

Check warning on line 24 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (8.2.2)

The import of ‘Data.Typeable’ is redundant
import System.IO.Unsafe

import Data.Orphans ()
Expand Down Expand Up @@ -155,7 +155,7 @@
prop_Doublehost :: Double -> Property
prop_Doublehost = roundTripWith putDoublehost getDoublehost

#if MIN_VERSION_base(4,10,0)
#if MIN_VERSION_base(4,11,0)
testTypeable :: Test
testTypeable = testProperty "TypeRep" prop_TypeRep

Expand All @@ -180,7 +180,7 @@
, typeRep (Proxy :: Proxy (() -> ()))
]

instance Arbitrary TypeRep where

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.14.1)

Orphan class instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.6.7)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.12.2)

Orphan class instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (8.8.4)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.10.3)

Orphan class instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (8.10.7)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.4.8)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.2.8)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (8.6.5)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (8.4.4)

Orphan instance: instance Arbitrary TypeRep

Check warning on line 183 in tests/QC.hs

View workflow job for this annotation

GitHub Actions / build (9.8.4)

Orphan class instance: instance Arbitrary TypeRep
arbitrary = oneof (map pure atomicTypeReps)
#else
testTypeable :: Test
Expand Down
Loading