on develop help sign in
Merge remote-tracking branch 'origin/develop' into no-group
a9a9af4John Ericson
.github/workflows/haskell.ymlnew file+45
@@ -0,0 +1,45 @@
1+name: github-action
2+
3+on: [push, pull_request]
4+
5+jobs:
6+ build:
7+ strategy:
8+ matrix:
9+ ghc: ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.2']
10+ os: ['ubuntu-latest', 'macos-latest']
11+ exclude:
12+ # There are some linker warnings in 802 on darwin that
13+ # cause compilation to fail
14+ # See https://github.com/NixOS/nixpkgs/issues/25139
15+ - ghc: '8.0.2'
16+ os: 'macos-latest'
17+ runs-on: ${{ matrix.os }}
18+
19+ name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
20+ steps:
21+ - uses: actions/checkout@v2
22+ - uses: actions/setup-haskell@v1
23+ with:
24+ ghc-version: ${{ matrix.ghc }}
25+ - name: Cache
26+ uses: actions/cache@v1
27+ env:
28+ cache-name: cache-cabal
29+ with:
30+ path: ~/.cabal
31+ key: ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
32+ restore-keys: |
33+ ${{ runner.os }}-${{ matrix.ghc }}-build-${{ env.cache-name }}-
34+ ${{ runner.os }}-${{ matrix.ghc }}-build-
35+ ${{ runner.os }}-${{ matrix.ghc }}-
36+ ${{ runner.os }}
37+
38+ - name: Install dependencies
39+ run: |
40+ cabal update
41+ cabal build --only-dependencies --enable-tests --enable-benchmarks
42+ - name: Build
43+ run: cabal build --enable-tests --enable-benchmarks all
44+ - name: Run tests
45+ run: cabal test all
ChangeLog.md+4
@@ -18,6 +18,10 @@
18* `Additive` now lives in `Data.Semigroup.Additive`, but is still reexported
18* `Additive` now lives in `Data.Semigroup.Additive`, but is still reexported
19 from `Data.Patch` for compatability.
19 from `Data.Patch` for compatability.
20
20
21+## 0.0.4.0
22+
23+* Enable PolyKinds
24+
21## 0.0.3.2
25## 0.0.3.2
22
26
23* Update version bounds
27* Update version bounds
patch.cabal+3−2
@@ -28,7 +28,7 @@ tested-with:
28library
28library
29 hs-source-dirs: src
29 hs-source-dirs: src
30 default-language: Haskell2010
30 default-language: Haskell2010
31− build-depends: base >= 4.9 && < 4.14
31+ build-depends: base >= 4.9 && < 4.15
32 , constraints-extras >= 0.3 && < 0.4
32 , constraints-extras >= 0.3 && < 0.4
33 , containers >= 0.6 && < 0.7
33 , containers >= 0.6 && < 0.7
34 , dependent-map >= 0.3 && < 0.5
34 , dependent-map >= 0.3 && < 0.5
@@ -55,6 +55,7 @@ library
55 , Data.Semigroup.Additive
55 , Data.Semigroup.Additive
56
56
57 ghc-options: -Wall -fwarn-redundant-constraints -fwarn-tabs
57 ghc-options: -Wall -fwarn-redundant-constraints -fwarn-tabs
58+ default-extensions: PolyKinds
58
59
59test-suite hlint
60test-suite hlint
60 default-language: Haskell2010
61 default-language: Haskell2010
@@ -65,7 +66,7 @@ test-suite hlint
65 , directory
66 , directory
66 , filepath
67 , filepath
67 , filemanip
68 , filemanip
68− , hlint (< 2.1 || >= 2.2.2) && < 3
69+ , hlint (< 2.1 || >= 2.2.2) && < 3.3
69 if impl(ghcjs)
70 if impl(ghcjs)
70 buildable: False
71 buildable: False
71
72
src/Data/Patch/Class.hs+1−1
@@ -30,7 +30,7 @@ instance Patch (Identity a) where
30 apply (Identity a) _ = Just a
30 apply (Identity a) _ = Just a
31
31
32-- | 'Proxy' can be used as a 'Patch' that does nothing.
32-- | 'Proxy' can be used as a 'Patch' that does nothing.
33−instance Patch (Proxy a) where
33+instance Patch (Proxy (a :: *)) where
34 type PatchTarget (Proxy a) = a
34 type PatchTarget (Proxy a) = a
35 apply ~Proxy _ = Nothing
35 apply ~Proxy _ = Nothing
36
36