File tree Expand file tree Collapse file tree 10 files changed +74
-71
lines changed Expand file tree Collapse file tree 10 files changed +74
-71
lines changed Original file line number Diff line number Diff line change 23
23
~/.cabal/packages
24
24
~/.cabal/store
25
25
dist-newstyle
26
- key : cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base .cabal') }}-${{ github.sha }}
27
- restore-keys : cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('linear-base .cabal') }}-
26
+ key : cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('capability .cabal') }}-${{ github.sha }}
27
+ restore-keys : cache-${{ runner.os }}-${{ hashFiles('nixpkgs.nix') }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('capability .cabal') }}-
28
28
- name : Update Cabal's database
29
29
run : $NIXSHELL --run "cabal update"
30
30
- name : Build Cabal's dependencies
35
35
run : $NIXSHELL --run "cabal --flag=dev test"
36
36
- name : Haddock
37
37
run : $NIXSHELL --run "cabal haddock"
38
+
39
+ stack-ghc9 :
40
+ name : Build on GHC 9.0
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+
44
+ - name : Cache dependencies
45
+
46
+ with :
47
+ path : ~/.stack
48
+ key : stack-ghc9-${{ runner.os }}-v${{ env.cache-invalidation-key }}-${{ hashFiles('stack-ghc9.yaml.lock', 'capability.cabal') }}
49
+ - name : Upgrade stack
50
+ run : stack upgrade
51
+ - name : Build
52
+ run : stack --stack-yaml=stack-ghc9.yaml build --pedantic --test --bench --no-run-tests --no-run-benchmarks
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ library
58
58
Capability.Stream
59
59
Capability.TypeOf
60
60
Capability.Writer
61
- Capability.Writer.Discouraged
62
61
build-depends :
63
62
base >= 4.14 && < 5.0
64
63
, constraints >= 0.1 && < 0.14
@@ -67,7 +66,6 @@ library
67
66
, generic-lens >= 2.0 && < 2.2
68
67
, lens >= 4.16 && < 5.1
69
68
, monad-control >= 1.0 && < 1.1
70
- , monad-unlift >= 0.2 && < 0.3
71
69
, mtl >= 2.0 && < 3.0
72
70
, mutable-containers >= 0.3 && < 0.4
73
71
, primitive >= 0.6 && < 0.8
Original file line number Diff line number Diff line change 103
103
-- The use of tags allows one to have independent effects that share a superclass.
104
104
-- E.g. @HasState "foo" Int@ and @HasWriter "bar" String@.
105
105
--
106
- -- Some of the capability modules have a “discouraged” companion (such as
107
- -- "Capability.Writer.Discouraged"). These modules contain deriving-via
108
- -- combinators which you can use if you absolutely must: they are correct, but
109
- -- inefficient, so we recommend that you do not.
110
- --
111
106
-- Finally there are
112
107
--
113
108
-- * "Capability.Derive"
Original file line number Diff line number Diff line change @@ -174,8 +174,8 @@ wrapError :: forall innertag t (cs :: [Capability]) inner m a.
174
174
, HasCatch innertag inner (t m )
175
175
, All cs m )
176
176
=> (forall m' . All (HasCatch innertag inner ': cs ) m' => m' a ) -> m a
177
- wrapError =
178
- derive @ t @ '[HasCatch innertag inner ] @ cs
177
+ wrapError action =
178
+ derive @ t @ '[HasCatch innertag inner ] @ cs action
179
179
{-# INLINE wrapError #-}
180
180
181
181
-- XXX: Does it make sense to add a HasMask capability similar to @MonadMask@?
Original file line number Diff line number Diff line change @@ -107,8 +107,8 @@ magnify :: forall innertag t (cs :: [Capability]) inner m a.
107
107
, HasReader innertag inner (t m )
108
108
, All cs m )
109
109
=> (forall m' . All (HasReader innertag inner ': cs ) m' => m' a ) -> m a
110
- magnify =
111
- derive @ t @ '[HasReader innertag inner ] @ cs
110
+ magnify action =
111
+ derive @ t @ '[HasReader innertag inner ] @ cs action
112
112
{-# INLINE magnify #-}
113
113
114
114
--------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ interpret_ ::
73
73
Reified tag c m ->
74
74
(forall m' . c m' => m' a ) ->
75
75
m a
76
- interpret_ = interpret @ tag @ '[] @ c
76
+ interpret_ dict action = interpret @ tag @ '[] @ c dict action
77
77
{-# INLINE interpret_ #-}
78
78
79
79
-- | @interpret \@tag \@ambient dict action@
Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ zoom :: forall innertag t (cs :: [Capability]) inner m a.
132
132
, HasState innertag inner (t m )
133
133
, All cs m )
134
134
=> (forall m' . All (HasState innertag inner ': cs ) m' => m' a ) -> m a
135
- zoom =
136
- derive @ t @ '[HasState innertag inner ] @ cs
135
+ zoom action =
136
+ derive @ t @ '[HasState innertag inner ] @ cs action
137
137
{-# INLINE zoom #-}
138
138
139
139
--------------------------------------------------------------------------------
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ resolver : nightly-2021-07-04
2
+
3
+ packages :
4
+ - .
5
+
6
+ extra-deps :
7
+ # Generic-lens is not yet released in a 9.0-compatible version
8
+ - git : https://github.com/kcsongor/generic-lens.git
9
+ commit : 8e1fc7dcf444332c474fca17110d4bc554db08c8
10
+ subdirs :
11
+ - generic-lens-core
12
+ - generic-lens
Original file line number Diff line number Diff line change
1
+ # This file was autogenerated by Stack.
2
+ # You should not edit this file by hand.
3
+ # For more information, please see the documentation at:
4
+ # https://docs.haskellstack.org/en/stable/lock_files
5
+
6
+ packages:
7
+ - completed:
8
+ subdir: generic-lens-core
9
+ name: generic-lens-core
10
+ version: 2.1.0.0
11
+ git: https://github.com/kcsongor/generic-lens.git
12
+ pantry-tree:
13
+ size: 2283
14
+ sha256: 5a26b16c38ad8d8ebc81182e1d09858858f16dc117a0c7b084d8446d3a17d749
15
+ commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
16
+ original:
17
+ subdir: generic-lens-core
18
+ git: https://github.com/kcsongor/generic-lens.git
19
+ commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
20
+ - completed:
21
+ subdir: generic-lens
22
+ name: generic-lens
23
+ version: 2.1.0.0
24
+ git: https://github.com/kcsongor/generic-lens.git
25
+ pantry-tree:
26
+ size: 2630
27
+ sha256: aba81557550537d4cfda2c1b07accff8589da44a1e418a3cde5639eb438d1c86
28
+ commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
29
+ original:
30
+ subdir: generic-lens
31
+ git: https://github.com/kcsongor/generic-lens.git
32
+ commit: 8e1fc7dcf444332c474fca17110d4bc554db08c8
33
+ snapshots:
34
+ - completed:
35
+ size: 540164
36
+ url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2021/7/4.yaml
37
+ sha256: 195e3e9394de03e724525e210f82e30c4488f7c8a09fc70850d75d8b79332993
38
+ original: nightly-2021-07-04
You can’t perform that action at this time.
0 commit comments