Skip to content

Commit 7076a46

Browse files
committed
Drop obsolete dependency on deepseq-generics
Functionality is available from deepseq
1 parent 78e136d commit 7076a46

30 files changed

+139
-147
lines changed

github.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ library
203203
, base16-bytestring >=0.1.1.6 && <1.1
204204
, binary-instances >=1 && <1.1
205205
, cryptohash-sha1 >=0.11.100.1 && <0.12
206-
, deepseq-generics >=0.2.0.0 && <0.3
207206
, hashable >=1.2.7.0 && <2
208207
, http-client >=0.5.12 && <0.8
209208
, http-link-header >=1.0.3.1 && <1.3

src/GitHub/Auth.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data Auth
2525
| EnterpriseOAuth Text Token -- ^ Custom endpoint and OAuth token
2626
deriving (Show, Data, Typeable, Eq, Ord, Generic)
2727

28-
instance NFData Auth where rnf = genericRnf
28+
instance NFData Auth
2929
instance Binary Auth
3030
instance Hashable Auth
3131

src/GitHub/Data/Actions/Workflows.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ data CreateWorkflowDispatchEvent a = CreateWorkflowDispatchEvent
3333
}
3434
deriving (Show, Generic)
3535

36-
instance (NFData a) => NFData (CreateWorkflowDispatchEvent a) where rnf = genericRnf
36+
instance (NFData a) => NFData (CreateWorkflowDispatchEvent a)
3737
instance (Binary a) => Binary (CreateWorkflowDispatchEvent a)
3838

3939
-------------------------------------------------------------------------------

src/GitHub/Data/Activities.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ data RepoStarred = RepoStarred
1515
}
1616
deriving (Show, Data, Typeable, Eq, Ord, Generic)
1717

18-
instance NFData RepoStarred where rnf = genericRnf
18+
instance NFData RepoStarred
1919
instance Binary RepoStarred
2020

2121
-- JSON Instances
@@ -35,7 +35,7 @@ data Subject = Subject
3535
}
3636
deriving (Show, Data, Typeable, Eq, Ord, Generic)
3737

38-
instance NFData Subject where rnf = genericRnf
38+
instance NFData Subject
3939
instance Binary Subject
4040

4141
instance FromJSON Subject where
@@ -63,7 +63,7 @@ data NotificationReason
6363
| TeamMentionReason
6464
deriving (Show, Data, Enum, Bounded, Typeable, Eq, Ord, Generic)
6565

66-
instance NFData NotificationReason where rnf = genericRnf
66+
instance NFData NotificationReason
6767
instance Binary NotificationReason
6868

6969
instance FromJSON NotificationReason where
@@ -99,7 +99,7 @@ data Notification = Notification
9999
}
100100
deriving (Show, Data, Typeable, Eq, Ord, Generic)
101101

102-
instance NFData Notification where rnf = genericRnf
102+
instance NFData Notification
103103
instance Binary Notification
104104

105105
instance FromJSON Notification where

src/GitHub/Data/Comments.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ data Comment = Comment
2121
}
2222
deriving (Show, Data, Typeable, Eq, Ord, Generic)
2323

24-
instance NFData Comment where rnf = genericRnf
24+
instance NFData Comment
2525
instance Binary Comment
2626

2727
instance FromJSON Comment where
@@ -43,7 +43,7 @@ data NewComment = NewComment
4343
}
4444
deriving (Show, Data, Typeable, Eq, Ord, Generic)
4545

46-
instance NFData NewComment where rnf = genericRnf
46+
instance NFData NewComment
4747
instance Binary NewComment
4848

4949
instance ToJSON NewComment where
@@ -54,7 +54,7 @@ data EditComment = EditComment
5454
}
5555
deriving (Show, Data, Typeable, Eq, Ord, Generic)
5656

57-
instance NFData EditComment where rnf = genericRnf
57+
instance NFData EditComment
5858
instance Binary EditComment
5959

6060
instance ToJSON EditComment where
@@ -68,7 +68,7 @@ data NewPullComment = NewPullComment
6868
}
6969
deriving (Show, Data, Typeable, Eq, Ord, Generic)
7070

71-
instance NFData NewPullComment where rnf = genericRnf
71+
instance NFData NewPullComment
7272
instance Binary NewPullComment
7373

7474
instance ToJSON NewPullComment where
@@ -84,7 +84,7 @@ data PullCommentReply = PullCommentReply
8484
}
8585
deriving (Show, Data, Typeable, Eq, Ord, Generic)
8686

87-
instance NFData PullCommentReply where rnf = genericRnf
87+
instance NFData PullCommentReply
8888

8989
instance ToJSON PullCommentReply where
9090
toJSON (PullCommentReply b) =

src/GitHub/Data/Content.hs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data Content
2020
| ContentDirectory !(Vector ContentItem)
2121
deriving (Show, Data, Typeable, Eq, Ord, Generic)
2222

23-
instance NFData Content where rnf = genericRnf
23+
instance NFData Content
2424
instance Binary Content
2525

2626
data ContentFileData = ContentFileData {
@@ -30,7 +30,7 @@ data ContentFileData = ContentFileData {
3030
,contentFileContent :: !Text
3131
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
3232

33-
instance NFData ContentFileData where rnf = genericRnf
33+
instance NFData ContentFileData
3434
instance Binary ContentFileData
3535

3636
-- | An item in a directory listing.
@@ -39,13 +39,13 @@ data ContentItem = ContentItem {
3939
,contentItemInfo :: !ContentInfo
4040
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
4141

42-
instance NFData ContentItem where rnf = genericRnf
42+
instance NFData ContentItem
4343
instance Binary ContentItem
4444

4545
data ContentItemType = ItemFile | ItemDir
4646
deriving (Show, Data, Typeable, Eq, Ord, Generic)
4747

48-
instance NFData ContentItemType where rnf = genericRnf
48+
instance NFData ContentItemType
4949
instance Binary ContentItemType
5050

5151
-- | Information common to both kinds of Content: files and directories.
@@ -58,23 +58,23 @@ data ContentInfo = ContentInfo {
5858
,contentHtmlUrl :: !URL
5959
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
6060

61-
instance NFData ContentInfo where rnf = genericRnf
61+
instance NFData ContentInfo
6262
instance Binary ContentInfo
6363

6464
data ContentResultInfo = ContentResultInfo
6565
{ contentResultInfo :: !ContentInfo
6666
, contentResultSize :: !Int
6767
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
6868

69-
instance NFData ContentResultInfo where rnf = genericRnf
69+
instance NFData ContentResultInfo
7070
instance Binary ContentResultInfo
7171

7272
data ContentResult = ContentResult
7373
{ contentResultContent :: !ContentResultInfo
7474
, contentResultCommit :: !GitCommit
7575
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
7676

77-
instance NFData ContentResult where rnf = genericRnf
77+
instance NFData ContentResult
7878
instance Binary ContentResult
7979

8080
data Author = Author
@@ -83,7 +83,7 @@ data Author = Author
8383
}
8484
deriving (Eq, Ord, Show, Data, Typeable, Generic)
8585

86-
instance NFData Author where rnf = genericRnf
86+
instance NFData Author
8787
instance Binary Author
8888

8989
data CreateFile = CreateFile
@@ -96,7 +96,7 @@ data CreateFile = CreateFile
9696
}
9797
deriving (Eq, Ord, Show, Data, Typeable, Generic)
9898

99-
instance NFData CreateFile where rnf = genericRnf
99+
instance NFData CreateFile
100100
instance Binary CreateFile
101101

102102
data UpdateFile = UpdateFile
@@ -110,7 +110,7 @@ data UpdateFile = UpdateFile
110110
}
111111
deriving (Eq, Ord, Show, Data, Typeable, Generic)
112112

113-
instance NFData UpdateFile where rnf = genericRnf
113+
instance NFData UpdateFile
114114
instance Binary UpdateFile
115115

116116
data DeleteFile = DeleteFile
@@ -123,7 +123,7 @@ data DeleteFile = DeleteFile
123123
}
124124
deriving (Eq, Ord, Show, Data, Typeable, Generic)
125125

126-
instance NFData DeleteFile where rnf = genericRnf
126+
instance NFData DeleteFile
127127
instance Binary DeleteFile
128128

129129
instance FromJSON Content where

src/GitHub/Data/Definitions.hs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data SimpleUser = SimpleUser
4141
}
4242
deriving (Show, Data, Typeable, Eq, Ord, Generic)
4343

44-
instance NFData SimpleUser where rnf = genericRnf
44+
instance NFData SimpleUser
4545
instance Binary SimpleUser
4646

4747
data SimpleOrganization = SimpleOrganization
@@ -52,7 +52,7 @@ data SimpleOrganization = SimpleOrganization
5252
}
5353
deriving (Show, Data, Typeable, Eq, Ord, Generic)
5454

55-
instance NFData SimpleOrganization where rnf = genericRnf
55+
instance NFData SimpleOrganization
5656
instance Binary SimpleOrganization
5757

5858
-- | Sometimes we don't know the type of the owner, e.g. in 'Repo'
@@ -65,7 +65,7 @@ data SimpleOwner = SimpleOwner
6565
}
6666
deriving (Show, Data, Typeable, Eq, Ord, Generic)
6767

68-
instance NFData SimpleOwner where rnf = genericRnf
68+
instance NFData SimpleOwner
6969
instance Binary SimpleOwner
7070

7171
data User = User
@@ -90,7 +90,7 @@ data User = User
9090
}
9191
deriving (Show, Data, Typeable, Eq, Ord, Generic)
9292

93-
instance NFData User where rnf = genericRnf
93+
instance NFData User
9494
instance Binary User
9595

9696
data Organization = Organization
@@ -113,14 +113,14 @@ data Organization = Organization
113113
}
114114
deriving (Show, Data, Typeable, Eq, Ord, Generic)
115115

116-
instance NFData Organization where rnf = genericRnf
116+
instance NFData Organization
117117
instance Binary Organization
118118

119119
-- | In practice you can't have concrete values of 'Owner'.
120120
newtype Owner = Owner (Either User Organization)
121121
deriving (Show, Data, Typeable, Eq, Ord, Generic)
122122

123-
instance NFData Owner where rnf = genericRnf
123+
instance NFData Owner
124124
instance Binary Owner
125125

126126
fromOwner :: Owner -> Either User Organization
@@ -242,7 +242,7 @@ data MembershipRole
242242
deriving
243243
(Eq, Ord, Show, Enum, Bounded, Generic, Typeable, Data)
244244

245-
instance NFData MembershipRole where rnf = genericRnf
245+
instance NFData MembershipRole
246246
instance Binary MembershipRole
247247

248248
instance FromJSON MembershipRole where
@@ -257,7 +257,7 @@ data MembershipState
257257
| MembershipActive
258258
deriving (Show, Data, Typeable, Eq, Ord, Generic)
259259

260-
instance NFData MembershipState where rnf = genericRnf
260+
instance NFData MembershipState
261261
instance Binary MembershipState
262262

263263
instance FromJSON MembershipState where
@@ -277,7 +277,7 @@ data Membership = Membership
277277
}
278278
deriving (Show, Data, Typeable, Eq, Ord, Generic)
279279

280-
instance NFData Membership where rnf = genericRnf
280+
instance NFData Membership
281281
instance Binary Membership
282282

283283
instance FromJSON Membership where
@@ -324,7 +324,7 @@ data IssueLabel = IssueLabel
324324
}
325325
deriving (Show, Data, Typeable, Eq, Ord, Generic)
326326

327-
instance NFData IssueLabel where rnf = genericRnf
327+
instance NFData IssueLabel
328328
instance Binary IssueLabel
329329

330330
instance FromJSON IssueLabel where
@@ -346,7 +346,7 @@ data NewIssueLabel = NewIssueLabel
346346
}
347347
deriving (Show, Data, Typeable, Eq, Ord, Generic)
348348

349-
instance NFData NewIssueLabel where rnf = genericRnf
349+
instance NFData NewIssueLabel
350350
instance Binary NewIssueLabel
351351

352352

@@ -373,7 +373,7 @@ data UpdateIssueLabel = UpdateIssueLabel
373373
}
374374
deriving (Show, Data, Typeable, Eq, Ord, Generic)
375375

376-
instance NFData UpdateIssueLabel where rnf = genericRnf
376+
instance NFData UpdateIssueLabel
377377
instance Binary UpdateIssueLabel
378378

379379

src/GitHub/Data/Deployments.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data DeploymentQueryOption
3636
| DeploymentQueryEnvironment !Text
3737
deriving (Show, Data, Typeable, Eq, Ord, Generic)
3838

39-
instance NFData DeploymentQueryOption where rnf = genericRnf
39+
instance NFData DeploymentQueryOption
4040
instance Binary DeploymentQueryOption
4141

4242
renderDeploymentQueryOption :: DeploymentQueryOption -> (ByteString, ByteString)
@@ -63,7 +63,7 @@ data Deployment a = Deployment
6363
, deploymentRepositoryUrl :: !URL
6464
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
6565

66-
instance NFData a => NFData (Deployment a) where rnf = genericRnf
66+
instance NFData a => NFData (Deployment a)
6767
instance Binary a => Binary (Deployment a)
6868

6969
instance FromJSON a => FromJSON (Deployment a) where
@@ -106,7 +106,7 @@ data CreateDeployment a = CreateDeployment
106106
-- ^ Short description of the deployment. Default: ""
107107
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
108108

109-
instance NFData a => NFData (CreateDeployment a) where rnf = genericRnf
109+
instance NFData a => NFData (CreateDeployment a)
110110
instance Binary a => Binary (CreateDeployment a)
111111

112112
instance ToJSON a => ToJSON (CreateDeployment a) where
@@ -134,7 +134,7 @@ data DeploymentStatus = DeploymentStatus
134134
, deploymentStatusRepositoryUrl :: !URL
135135
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
136136

137-
instance NFData DeploymentStatus where rnf = genericRnf
137+
instance NFData DeploymentStatus
138138
instance Binary DeploymentStatus
139139

140140
instance FromJSON DeploymentStatus where
@@ -159,7 +159,7 @@ data DeploymentStatusState
159159
| DeploymentStatusInactive
160160
deriving (Show, Data, Typeable, Eq, Ord, Generic)
161161

162-
instance NFData DeploymentStatusState where rnf = genericRnf
162+
instance NFData DeploymentStatusState
163163
instance Binary DeploymentStatusState
164164

165165
instance ToJSON DeploymentStatusState where
@@ -192,7 +192,7 @@ data CreateDeploymentStatus = CreateDeploymentStatus
192192
-- Default: ""
193193
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
194194

195-
instance NFData CreateDeploymentStatus where rnf = genericRnf
195+
instance NFData CreateDeploymentStatus
196196
instance Binary CreateDeploymentStatus
197197

198198
instance ToJSON CreateDeploymentStatus where

src/GitHub/Data/Email.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data EmailVisibility
1010
| EmailVisibilityPublic
1111
deriving (Show, Data, Enum, Bounded, Typeable, Eq, Ord, Generic)
1212

13-
instance NFData EmailVisibility where rnf = genericRnf
13+
instance NFData EmailVisibility
1414
instance Binary EmailVisibility
1515

1616
instance FromJSON EmailVisibility where
@@ -26,7 +26,7 @@ data Email = Email
2626
, emailVisibility :: !(Maybe EmailVisibility)
2727
} deriving (Show, Data, Typeable, Eq, Ord, Generic)
2828

29-
instance NFData Email where rnf = genericRnf
29+
instance NFData Email
3030
instance Binary Email
3131

3232
instance FromJSON Email where

0 commit comments

Comments
 (0)