Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd149a4

Browse files
committed
Make less Hashable (Request) less restrictive
1 parent 70283fe commit dd149a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GitHub/Data/Request.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ instance Hashable (SimpleRequest k a) where
229229
`hashWithSalt` ps
230230
`hashWithSalt` body
231231

232-
instance Hashable a => Hashable (Request k a) where
232+
instance Hashable (Request k a) where
233233
hashWithSalt salt (SimpleQuery req) =
234234
salt `hashWithSalt` (0 :: Int)
235235
`hashWithSalt` req
236236
hashWithSalt salt (StatusQuery sm req) =
237237
salt `hashWithSalt` (1 :: Int)
238-
`hashWithSalt` sm
238+
`hashWithSalt` map fst sm
239239
`hashWithSalt` req
240240
hashWithSalt salt (HeaderQuery h req) =
241241
salt `hashWithSalt` (2 :: Int)

stack-nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2016-09-12
1+
resolver: nightly-2016-09-14
22
packages:
33
- '.'
44
- 'samples/'

0 commit comments

Comments
 (0)