@@ -20,7 +20,7 @@ import java.time.ZonedDateTime
2020
2121object Gists {
2222
23- def list [F [_]: Sync ](
23+ def list [F [_]: Concurrent ](
2424 username : String ,
2525 since : Option [ZonedDateTime ],
2626 auth : Option [Auth ]
@@ -35,7 +35,7 @@ object Gists {
3535 * List all public gists sorted by most recently updated to least recently updated.
3636 * https://developer.github.com/v3/gists/#list-all-public-gists
3737 */
38- def allPublic [F [_]: Sync ](
38+ def allPublic [F [_]: Concurrent ](
3939 since : Option [ZonedDateTime ],
4040 auth : Option [Auth ]
4141 ): Kleisli [Stream [F , * ], Client [F ], List [Gist ]] =
@@ -49,7 +49,7 @@ object Gists {
4949 * List starred gists by the authenticated user
5050 * https://developer.github.com/v3/gists/#list-starred-gists
5151 */
52- def starred [F [_]: Sync ](
52+ def starred [F [_]: Concurrent ](
5353 since : Option [ZonedDateTime ],
5454 auth : Auth
5555 ): Kleisli [Stream [F , * ], Client [F ], List [Gist ]] =
@@ -63,7 +63,7 @@ object Gists {
6363 * Get a single gist by its id
6464 * https://developer.github.com/v3/gists/#get-a-single-gist
6565 */
66- def get [F [_]: Sync ](
66+ def get [F [_]: Concurrent ](
6767 gistId : String ,
6868 auth : Option [Auth ]
6969 ): Kleisli [F , Client [F ], Gist ] =
@@ -77,7 +77,7 @@ object Gists {
7777 * Get a specific revision of a gist
7878 * https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist
7979 */
80- def getRevision [F [_]: Sync ](
80+ def getRevision [F [_]: Concurrent ](
8181 gistId : String ,
8282 sha : String ,
8383 auth : Option [Auth ]
@@ -92,7 +92,7 @@ object Gists {
9292 * Creates a new gist
9393 * https://developer.github.com/v3/gists/#create-a-gist
9494 */
95- def create [F [_]: Sync ](
95+ def create [F [_]: Concurrent ](
9696 newGist : CreateGist ,
9797 auth : Auth
9898 ): Kleisli [F , Client [F ], Gist ] =
@@ -107,7 +107,7 @@ object Gists {
107107 * Edit a gist
108108 * https://developer.github.com/v3/gists/#edit-a-gist
109109 */
110- def editGist [F [_]: Sync ](
110+ def editGist [F [_]: Concurrent ](
111111 gistId : String ,
112112 editGist : EditGist ,
113113 auth : Auth
@@ -123,7 +123,7 @@ object Gists {
123123 * List commits history for a gist
124124 * https://developer.github.com/v3/gists/#list-gist-commits
125125 */
126- def listCommits [F [_]: Sync ](
126+ def listCommits [F [_]: Concurrent ](
127127 gistId : String ,
128128 auth : Auth
129129 ): Kleisli [F , Client [F ], List [GistCommit ]] =
@@ -137,21 +137,21 @@ object Gists {
137137 * Star a gist
138138 * https://developer.github.com/v3/gists/#star-a-gist
139139 */
140- def star [F [_]: Sync ](
140+ def star [F [_]: Concurrent ](
141141 gistId : String ,
142142 auth : Auth
143143 ): Kleisli [F , Client [F ], Unit ] =
144144 RequestConstructor .runRequestWithNoBody[F , Unit ](
145145 auth.some,
146146 Method .PUT ,
147147 uri " gists " / gistId / " star"
148- )(Sync [F ], EntityDecoder .void[F ])
148+ )(Concurrent [F ], EntityDecoder .void[F ])
149149
150150 /**
151151 * Check if a gist is starred
152152 * https://developer.github.com/v3/gists/#check-if-a-gist-is-starred
153153 */
154- def checkStarred [F [_]: Sync ](
154+ def checkStarred [F [_]: Concurrent ](
155155 gistId : String ,
156156 auth : Auth
157157 ): Kleisli [F , Client [F ], Boolean ] =
@@ -160,7 +160,7 @@ object Gists {
160160 auth.some,
161161 Method .GET ,
162162 uri " gists " / gistId / " star"
163- )(Sync [F ], EntityDecoder .void[F ])
163+ )(Concurrent [F ], EntityDecoder .void[F ])
164164 .map(_ => true )
165165 .recover {
166166 case ghError : RequestConstructor .GithubError if ghError.status == Status .NotFound => false
@@ -170,7 +170,7 @@ object Gists {
170170 * Fork a gist
171171 * https://developer.github.com/v3/gists/#fork-a-gist
172172 */
173- def fork [F [_]: Sync ](
173+ def fork [F [_]: Concurrent ](
174174 gistId : String ,
175175 auth : Auth
176176 ): Kleisli [F , Client [F ], Gist ] =
@@ -184,7 +184,7 @@ object Gists {
184184 * List all gist's forks
185185 * https://developer.github.com/v3/gists/#list-gist-forks
186186 */
187- def listForks [F [_]: Sync ](
187+ def listForks [F [_]: Concurrent ](
188188 gistId : String ,
189189 auth : Auth
190190 ): Kleisli [F , Client [F ], List [GistFork ]] =
@@ -198,13 +198,13 @@ object Gists {
198198 * Delete an existing gist
199199 * https://developer.github.com/v3/gists/#delete-a-gist
200200 */
201- def delete [F [_]: Sync ](
201+ def delete [F [_]: Concurrent ](
202202 gistId : String ,
203203 auth : Auth
204204 ): Kleisli [F , Client [F ], Unit ] =
205205 RequestConstructor .runRequestWithNoBody[F , Unit ](
206206 auth.some,
207207 Method .DELETE ,
208208 uri " gists " / gistId
209- )(Sync [F ], EntityDecoder .void[F ])
209+ )(Concurrent [F ], EntityDecoder .void[F ])
210210}
0 commit comments