Skip to content

Commit 62f61d4

Browse files
chshershvrom911
andauthoredApr 18, 2020
[#10] Support GHC-8.10 (#11)
* [#10] Support GHC-8.10 Resolves #10 * Update README.md Co-Authored-By: Veronika Romashkina <[email protected]> Co-authored-by: Veronika Romashkina <[email protected]>
1 parent e7ff156 commit 62f61d4

File tree

8 files changed

+119
-68
lines changed

8 files changed

+119
-68
lines changed
 

‎.github/workflows/ci.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the master branch
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
name: ghc ${{ matrix.ghc }}
14+
runs-on: ubuntu-16.04
15+
strategy:
16+
matrix:
17+
cabal: ["3.0"]
18+
ghc:
19+
- "8.2.2"
20+
- "8.4.4"
21+
- "8.6.5"
22+
- "8.8.3"
23+
- "8.10.1"
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
28+
29+
- uses: actions/setup-haskell@v1
30+
name: Setup Haskell
31+
with:
32+
ghc-version: ${{ matrix.ghc }}
33+
cabal-version: ${{ matrix.cabal }}
34+
35+
- uses: actions/cache@v1
36+
name: Cache ~/.cabal/store
37+
with:
38+
path: ~/.cabal/store
39+
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
40+
41+
- name: Build
42+
run: |
43+
cabal update
44+
cabal build all --enable-tests --enable-benchmarks --write-ghc-environment-files=always
45+
46+
- name: Test
47+
run: |
48+
cabal test all --enable-tests --test-show-details=direct

‎.travis.yml

+10-36
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,28 @@
11
sudo: true
2-
language: haskell
2+
language: generic
33

44
git:
55
depth: 5
66

7-
cabal: "3.0"
8-
97
cache:
108
directories:
11-
- "$HOME/.cabal/store"
129
- "$HOME/.stack"
13-
- "$TRAVIS_BUILD_DIR/.stack-work"
1410

1511
matrix:
1612
include:
17-
- ghc: 8.2.2
18-
- ghc: 8.4.4
19-
- ghc: 8.6.5
20-
- ghc: 8.8.1
21-
22-
- ghc: 8.8.1
23-
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
24-
25-
- language: nix
26-
install: echo 'Running nix...'
27-
script: nix-shell --run 'cabal v2-test --enable-tests'
13+
- env: GHC='8.8.3'
14+
os: linux
15+
- env: GHC='8.8.3'
16+
os: osx
2817

2918
install:
30-
# HLint check
31-
- curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
32-
33-
- |
34-
if [ -z "$STACK_YAML" ]; then
35-
ghc --version
36-
cabal --version
37-
cabal update
38-
cabal build --enable-tests --enable-benchmarks
39-
else
40-
curl -sSL https://get.haskellstack.org/ | sh
41-
stack --version
42-
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
43-
fi
19+
# install stack and build project
20+
- curl -sSL https://get.haskellstack.org/ | sh
21+
- stack --version
22+
- stack build --test --no-run-tests --bench --no-run-benchmarks
4423

4524
script:
46-
- |
47-
if [ -z "$STACK_YAML" ]; then
48-
cabal test --enable-tests
49-
else
50-
stack test --system-ghc
51-
fi
25+
- stack test --no-terminal
5226

5327
notifications:
5428
email: false

‎CHANGELOG.md

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

6+
## 0.0.1.1 — Apr 18, 2020
7+
8+
* [#10](https://github.com/chshersh/type-errors-pretty/issues/10):
9+
Support GHC-8.10.
10+
611
## 0.0.1.0 — Oct 15, 2019
712

8-
* [#216](https://github.com/chshersh/type-errors-pretty/pull/5):
13+
* [#5](https://github.com/chshersh/type-errors-pretty/pull/5):
914
Support GHC-8.8.
10-
(by [@chshersh](https://github.com/chshersh))
1115

1216
## 0.0.0.0 — Jul 15, 2019
1317

‎README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# type-errors-pretty
22

33
![pretty-bug](https://user-images.githubusercontent.com/4276606/61183911-eda86300-a679-11e9-9b8e-34c129469075.png)
4-
[![Build status](https://img.shields.io/travis/chshersh/type-errors-pretty.svg?logo=travis)](https://travis-ci.org/chshersh/type-errors-pretty)
4+
5+
[![GitHub CI](https://github.com/chshersh/type-errors-pretty/workflows/CI/badge.svg)](https://github.com/chshersh/type-errors-pretty/actions)
6+
[![Build status](https://img.shields.io/travis/com/chshersh/type-errors-pretty/master?logo=travis)](https://travis-ci.com/chshersh/type-errors-pretty)
7+
[![Windows build status](https://ci.appveyor.com/api/projects/status/github/chshersh/type-errors-pretty?branch=master&svg=true)](https://ci.appveyor.com/project/chshersh/type-errors-pretty)
58
[![Hackage](https://img.shields.io/hackage/v/type-errors-pretty.svg?logo=haskell)](https://hackage.haskell.org/package/type-errors-pretty)
69
[![Stackage Lts](http://stackage.org/package/type-errors-pretty/badge/lts)](http://stackage.org/lts/package/type-errors-pretty)
710
[![Stackage Nightly](http://stackage.org/package/type-errors-pretty/badge/nightly)](http://stackage.org/nightly/package/type-errors-pretty)
811
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](LICENSE)
912

13+
1014
> "It is important that we forgive ourselves for making mistakes. We need to learn
1115
> from our errors and move on."
1216
>

‎appveyor.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
clone_folder: "c:\\WORK"
2+
clone_depth: 5
3+
4+
# Do not build feature branch with open Pull Requests
5+
skip_branch_with_pr: true
6+
7+
platform:
8+
- x86_64
9+
10+
cache:
11+
- "C:\\SR"
12+
- dist-newstyle
13+
14+
environment:
15+
global:
16+
CABOPTS: --store-dir=C:\\SR
17+
18+
matrix:
19+
- GHCVER: 8.8.3
20+
21+
install:
22+
- choco source add -n mistuke -s https://www.myget.org/F/mistuke/api/v2
23+
- choco install -y cabal --version 3.0.0.0
24+
- choco install -y ghc --version %GHCVER%
25+
- refreshenv
26+
27+
before_build:
28+
- cabal --version
29+
- ghc --version
30+
- cabal %CABOPTS% update
31+
32+
build_script:
33+
- cabal %CABOPTS% build --enable-tests --write-ghc-environment-files=always
34+
- cabal %CABOPTS% test --enable-tests

‎default.nix

-20
This file was deleted.

‎stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: nightly-2019-10-15
1+
resolver: lts-15.8

‎type-errors-pretty.cabal

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: type-errors-pretty
3-
version: 0.0.1.0
3+
version: 0.0.1.1
44
synopsis: Combinators for writing pretty type errors easily
55
description:
66
This library provides replacements for the @ErrorMessage@ constructors to
@@ -19,24 +19,31 @@ extra-doc-files: README.md
1919
tested-with: GHC == 8.2.2
2020
GHC == 8.4.4
2121
GHC == 8.6.5
22-
GHC == 8.8.1
22+
GHC == 8.8.3
23+
GHC == 8.10.1
2324

2425
source-repository head
2526
type: git
2627
location: https://github.com/chshersh/type-errors-pretty.git
2728

2829
common common-options
29-
build-depends: base >= 4.10.1.0 && < 4.14
30+
build-depends: base >= 4.10.1.0 && < 4.15
31+
3032
ghc-options: -Wall
31-
-Wincomplete-uni-patterns
32-
-Wincomplete-record-updates
3333
-Wcompat
3434
-Widentities
35+
-Wincomplete-uni-patterns
36+
-Wincomplete-record-updates
3537
-Wredundant-constraints
36-
-fhide-source-paths
37-
if impl(ghc >= 8.8.1)
38+
if impl(ghc >= 8.2)
39+
ghc-options: -fhide-source-paths
40+
if impl(ghc >= 8.4)
41+
ghc-options: -Wmissing-export-lists
42+
-Wpartial-fields
43+
if impl(ghc >= 8.8)
3844
ghc-options: -Wmissing-deriving-strategies
39-
-Werror=missing-deriving-strategies
45+
if impl(ghc >= 8.10)
46+
ghc-options: -Wunused-packages
4047

4148
default-language: Haskell2010
4249
default-extensions: ConstraintKinds

0 commit comments

Comments
 (0)
Please sign in to comment.