on develop help sign in
Merge remote-tracking branch 'origin/develop' into patch-map-inner-patch-desugar
220acfcJohn 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
@@ -6,6 +6,10 @@
6 Care is taken to make this as little of a breaking change as possible.
6 Care is taken to make this as little of a breaking change as possible.
7 In particular, `PatchMapWithMove` is a newtype of `PatchMapWithPatchingMove` as is the `NodeInfo` of `PatchMapWithPatchingMove`'s `NodeInfo`.
7 In particular, `PatchMapWithMove` is a newtype of `PatchMapWithPatchingMove` as is the `NodeInfo` of `PatchMapWithPatchingMove`'s `NodeInfo`.
8
8
9+## 0.0.4.0
10+
11+* Enable PolyKinds
12+
9## 0.0.3.2
13## 0.0.3.2
10
14
11* Update version bounds
15* Update version bounds
patch.cabal+4−3
@@ -1,5 +1,5 @@
1Name: patch
1Name: patch
2−Version: 0.0.3.2
2+Version: 0.0.4.0
3Synopsis: Data structures for describing changes to other data structures.
3Synopsis: Data structures for describing changes to other data structures.
4Description:
4Description:
5 Data structures for describing changes to other data structures.
5 Data structures for describing changes to other data structures.
@@ -33,7 +33,7 @@ flag split-these
33library
33library
34 hs-source-dirs: src
34 hs-source-dirs: src
35 default-language: Haskell2010
35 default-language: Haskell2010
36− build-depends: base >= 4.9 && < 4.14
36+ build-depends: base >= 4.9 && < 4.15
37 , constraints-extras >= 0.3 && < 0.4
37 , constraints-extras >= 0.3 && < 0.4
38 , containers >= 0.6 && < 0.7
38 , containers >= 0.6 && < 0.7
39 , dependent-map >= 0.3 && < 0.5
39 , dependent-map >= 0.3 && < 0.5
@@ -55,6 +55,7 @@ library
55 , Data.Patch.MapWithPatchingMove
55 , Data.Patch.MapWithPatchingMove
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
59 if flag(split-these)
60 if flag(split-these)
60 build-depends: these >= 1 && <1.2
61 build-depends: these >= 1 && <1.2
@@ -73,7 +74,7 @@ test-suite hlint
73 , directory
74 , directory
74 , filepath
75 , filepath
75 , filemanip
76 , filemanip
76− , hlint (< 2.1 || >= 2.2.2) && < 3
77+ , hlint (< 2.1 || >= 2.2.2) && < 3.3
77 if impl(ghcjs)
78 if impl(ghcjs)
78 buildable: False
79 buildable: False
79
80
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