Skip to content

Commit 3c8babc

Browse files
committed
[#7] Support GHC-8.10
Resolves #7
1 parent ceed18f commit 3c8babc

File tree

5 files changed

+115
-61
lines changed

5 files changed

+115
-61
lines changed

.github/workflows/ci.yml

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: CI
2+
3+
# Trigger the workflow on push or pull request, but only for the master branch
4+
on:
5+
pull_request:
6+
push:
7+
branches: [master]
8+
9+
jobs:
10+
cabal:
11+
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
cabal: ["3.0"]
17+
ghc:
18+
- "8.2.2"
19+
- "8.4.4"
20+
- "8.6.5"
21+
- "8.8.3"
22+
- "8.10.1"
23+
exclude:
24+
- os: macOS-latest
25+
ghc: 8.8.3
26+
- os: macOS-latest
27+
ghc: 8.6.5
28+
- os: macOS-latest
29+
ghc: 8.4.4
30+
- os: macOS-latest
31+
ghc: 8.2.2
32+
- os: windows-latest
33+
ghc: 8.8.3
34+
- os: windows-latest
35+
ghc: 8.6.5
36+
- os: windows-latest
37+
ghc: 8.4.4
38+
- os: windows-latest
39+
ghc: 8.2.2
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
44+
45+
- uses: actions/setup-haskell@v1.1
46+
id: setup-haskell-cabal
47+
name: Setup Haskell
48+
with:
49+
ghc-version: ${{ matrix.ghc }}
50+
cabal-version: ${{ matrix.cabal }}
51+
52+
- uses: actions/cache@v1
53+
name: Cache cabal-store
54+
with:
55+
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
56+
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
57+
58+
- name: Build
59+
run: |
60+
cabal update
61+
cabal build --enable-tests --enable-benchmarks --write-ghc-environment-files=always
62+
63+
- name: Test
64+
run: |
65+
cabal test --enable-tests
66+
67+
stack:
68+
name: stack / ghc ${{ matrix.ghc }}
69+
runs-on: ubuntu-latest
70+
strategy:
71+
matrix:
72+
stack: ["2.1.3"]
73+
ghc: ["8.8.3"]
74+
75+
steps:
76+
- uses: actions/checkout@v2
77+
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
78+
79+
- uses: actions/setup-haskell@v1.1
80+
name: Setup Haskell Stack
81+
with:
82+
ghc-version: ${{ matrix.ghc }}
83+
stack-version: ${{ matrix.stack }}
84+
85+
- uses: actions/cache@v1
86+
name: Cache ~/.stack
87+
with:
88+
path: ~/.stack
89+
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
90+
91+
- name: Build
92+
run: |
93+
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
94+
95+
- name: Test
96+
run: |
97+
stack test --system-ghc

.travis.yml

-52
This file was deleted.

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
`ilist` uses [PVP Versioning][1].
44
The changelog is available [on GitHub][2].
55

6+
## 0.4.0.1 — May 7, 2020
7+
8+
* [#7](https://github.com/kowainik/ilist/issues/7):
9+
Support GHC-8.10. Move from GHC-8.8.1 support to GHC-8.8.3.
10+
611
## 0.4.0.0 — Dec 26, 2019
712

813
* Support GHC-8.8, GHC-8.6, GHC-8.4, GHC-8.2. Drop older GHC versions support.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ilist
22

3-
[![Travis](https://img.shields.io/travis/kowainik/ilist.svg?logo=travis)](http://travis-ci.org/kowainik/ilist)
3+
[![GitHub CI](https://github.com/kowainik/ilist/workflows/CI/badge.svg)](https://github.com/kowainik/ilist/actions)
44
[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/kowainik/ilist?branch=master&svg=true)](https://ci.appveyor.com/project/kowainik/ilist)
55
[![Hackage](https://img.shields.io/hackage/v/ilist.svg?logo=haskell)](https://hackage.haskell.org/package/ilist)
66
[![Stackage LTS](http://stackage.org/package/ilist/badge/lts)](http://stackage.org/lts/package/ilist)

ilist.cabal

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: ilist
3-
version: 0.4.0.0
3+
version: 0.4.0.1
44
synopsis: Optimised list functions for doing index-related things
55
description:
66
Optimised list functions for doing index-related things. They're
@@ -22,27 +22,31 @@ extra-doc-files: README.md
2222
tested-with: GHC == 8.2.2
2323
GHC == 8.4.4
2424
GHC == 8.6.5
25-
GHC == 8.8.1
25+
GHC == 8.8.3
26+
GHC == 8.10.1
2627

2728
source-repository head
2829
type: git
2930
location: https://github.com/kowainik/ilist.git
3031

3132
common common-options
32-
build-depends: base >= 4.10 && < 4.14
33+
build-depends: base >= 4.10 && < 4.15
3334

3435
ghc-options: -Wall
35-
-Wincomplete-uni-patterns
36-
-Wincomplete-record-updates
3736
-Wcompat
3837
-Widentities
38+
-Wincomplete-uni-patterns
39+
-Wincomplete-record-updates
3940
-Wredundant-constraints
40-
-Wpartial-fields
4141
-fhide-source-paths
42-
-freverse-errors
43-
if impl(ghc >= 8.8.1)
42+
if impl(ghc >= 8.4)
43+
ghc-options: -Wmissing-export-lists
44+
-Wpartial-fields
45+
if impl(ghc >= 8.8)
4446
ghc-options: -Wmissing-deriving-strategies
4547
-Werror=missing-deriving-strategies
48+
if impl(ghc >= 8.10)
49+
ghc-options: -Wunused-packages
4650

4751
default-language: Haskell2010
4852
default-extensions: DeriveGeneric

0 commit comments

Comments
 (0)