Skip to content

Commit 50e43d5

Browse files
committed
Remove obsolete deriving Typeable
1 parent 81009cb commit 50e43d5

38 files changed

+186
-192
lines changed

src/GitHub/Auth.hs

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

2828
instance NFData Auth
2929
instance Binary Auth

src/GitHub/Data/Actions/Artifacts.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data ArtifactWorkflowRun = ArtifactWorkflowRun
2727
, artifactWorkflowRunHeadBranch :: !Text
2828
, artifactWorkflowRunHeadSha :: !Text
2929
}
30-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
30+
deriving (Show, Data, Eq, Ord, Generic)
3131

3232
data Artifact = Artifact
3333
{ artifactArchiveDownloadUrl :: !URL
@@ -42,7 +42,7 @@ data Artifact = Artifact
4242
, artifactUrl :: !URL
4343
, artifactWorkflowRun :: !ArtifactWorkflowRun
4444
}
45-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
45+
deriving (Show, Data, Eq, Ord, Generic)
4646

4747
-------------------------------------------------------------------------------
4848
-- JSON instances

src/GitHub/Data/Actions/Cache.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ data Cache = Cache
2727
, cacheCreatedAt :: !UTCTime
2828
, cacheSizeInBytes :: !Int
2929
}
30-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
30+
deriving (Show, Data, Eq, Ord, Generic)
3131

3232
data RepositoryCacheUsage = RepositoryCacheUsage
3333
{ repositoryCacheUsageFullName :: !Text
3434
, repositoryCacheUsageActiveCachesSizeInBytes :: !Int
3535
, repositoryCacheUsageActiveCachesCount :: !Int
3636
}
37-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
37+
deriving (Show, Data, Eq, Ord, Generic)
3838

3939
data OrganizationCacheUsage = OrganizationCacheUsage
4040
{ organizationCacheUsageTotalActiveCachesSizeInBytes :: !Int
4141
, organizationCacheUsageTotalActiveCachesCount :: !Int
4242
}
43-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
43+
deriving (Show, Data, Eq, Ord, Generic)
4444

4545
-------------------------------------------------------------------------------
4646
-- JSON instances

src/GitHub/Data/Actions/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data WithTotalCount a = WithTotalCount
2020
, withTotalCountTotalCount :: !Int
2121
-- ^ The total size of the answer.
2222
}
23-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
23+
deriving (Show, Data, Eq, Ord, Generic)
2424

2525
-- | Joining two pages of a paginated response.
2626
-- The 'withTotalCountTotalCount' is assumed to be the same in both pages,

src/GitHub/Data/Actions/Secrets.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,49 +33,49 @@ data OrganizationSecret = OrganizationSecret
3333
, organizationSecretUpdatedAt :: !UTCTime
3434
, organizationSecretVisibility :: !Text
3535
}
36-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
36+
deriving (Show, Data, Eq, Ord, Generic)
3737

3838
data PublicKey = PublicKey
3939
{ publicKeyId :: !Text
4040
, publicKeyKey :: !Text
4141
}
42-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
42+
deriving (Show, Data, Eq, Ord, Generic)
4343

4444
data SetSecret = SetSecret
4545
{ setSecretPublicKeyId :: !Text
4646
, setSecretEncryptedValue :: !Text
4747
, setSecretVisibility :: !Text
4848
, setSecretSelectedRepositoryIds :: !(Maybe [Id Repo])
4949
}
50-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
50+
deriving (Show, Data, Eq, Ord, Generic)
5151

5252
data SetRepoSecret = SetRepoSecret
5353
{ setRepoSecretPublicKeyId :: !Text
5454
, setRepoSecretEncryptedValue :: !Text
5555
}
56-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
56+
deriving (Show, Data, Eq, Ord, Generic)
5757

5858
data SelectedRepo = SelectedRepo
5959
{ selectedRepoRepoId :: !(Id Repo)
6060
, selectedRepoRepoName :: !(Name Repo)
6161
}
62-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
62+
deriving (Show, Data, Eq, Ord, Generic)
6363

6464
data SetSelectedRepositories = SetSelectedRepositories
6565
{ setSelectedRepositoriesRepositoryIds :: ![Id Repo]
6666
}
67-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
67+
deriving (Show, Data, Eq, Ord, Generic)
6868

6969
data RepoSecret = RepoSecret
7070
{ repoSecretName :: !(Name RepoSecret)
7171
, repoSecretCreatedAt :: !UTCTime
7272
, repoSecretUpdatedAt :: !UTCTime
7373
}
74-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
74+
deriving (Show, Data, Eq, Ord, Generic)
7575

7676
-- TODO move somewhere else?
7777
data Environment = Environment
78-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
78+
deriving (Show, Data, Eq, Ord, Generic)
7979

8080
-------------------------------------------------------------------------------
8181
-- JSON instances

src/GitHub/Data/Actions/WorkflowJobs.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module GitHub.Data.Actions.WorkflowJobs (
1010
import Prelude ()
1111
import GitHub.Internal.Prelude
1212
(Applicative ((<*>)), Data, Eq, FromJSON (parseJSON), Generic, Integer,
13-
Ord, Show, Text, Typeable, UTCTime, Vector, withObject, ($), (.:),
13+
Ord, Show, Text, UTCTime, Vector, withObject, ($), (.:),
1414
(<$>))
1515

1616
import GitHub.Data.Id (Id)
@@ -32,7 +32,7 @@ data JobStep = JobStep
3232
, jobStepStartedAt :: !UTCTime
3333
, jobStepCompletedAt :: !UTCTime
3434
}
35-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
35+
deriving (Show, Data, Eq, Ord, Generic)
3636

3737
data Job = Job
3838
{ jobId :: !(Id Job)
@@ -56,7 +56,7 @@ data Job = Job
5656
, jobRunnerGroupId :: !Integer
5757
, jobRunnerGroupName :: !Text
5858
}
59-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
59+
deriving (Show, Data, Eq, Ord, Generic)
6060

6161
-------------------------------------------------------------------------------
6262
-- JSON instances

src/GitHub/Data/Actions/WorkflowRuns.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ data WorkflowRun = WorkflowRun
4141
, workflowRunAttempt :: !Integer
4242
, workflowRunStartedAt :: !UTCTime
4343
}
44-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
44+
deriving (Show, Data, Eq, Ord, Generic)
4545

4646
data RunAttempt = RunAttempt
47-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
47+
deriving (Show, Data, Eq, Ord, Generic)
4848

4949
data ReviewHistory = ReviewHistory
5050
{ reviewHistoryState :: !Text
5151
, reviewHistoryComment :: !Text
5252
, reviewHistoryUser :: !SimpleUser
5353

5454
}
55-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
55+
deriving (Show, Data, Eq, Ord, Generic)
5656

5757
-------------------------------------------------------------------------------
5858
-- JSON instances

src/GitHub/Data/Actions/Workflows.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data Workflow = Workflow
2525
, workflowHtmlUrl :: !URL
2626
, workflowBadgeUrl :: !URL
2727
}
28-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
28+
deriving (Show, Data, Eq, Ord, Generic)
2929

3030
data CreateWorkflowDispatchEvent a = CreateWorkflowDispatchEvent
3131
{ createWorkflowDispatchEventRef :: !Text

src/GitHub/Data/Activities.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data RepoStarred = RepoStarred
1313
{ repoStarredStarredAt :: !UTCTime
1414
, repoStarredRepo :: !Repo
1515
}
16-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
16+
deriving (Show, Data, Eq, Ord, Generic)
1717

1818
instance NFData RepoStarred
1919
instance Binary RepoStarred
@@ -33,7 +33,7 @@ data Subject = Subject
3333
-- TODO: Make an ADT for this.
3434
, subjectType :: !Text
3535
}
36-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
36+
deriving (Show, Data, Eq, Ord, Generic)
3737

3838
instance NFData Subject
3939
instance Binary Subject
@@ -61,7 +61,7 @@ data NotificationReason
6161
| StateChangeReason
6262
| SubscribedReason
6363
| TeamMentionReason
64-
deriving (Show, Data, Enum, Bounded, Typeable, Eq, Ord, Generic)
64+
deriving (Show, Data, Enum, Bounded, Eq, Ord, Generic)
6565

6666
instance NFData NotificationReason
6767
instance Binary NotificationReason
@@ -97,7 +97,7 @@ data Notification = Notification
9797
, notificationLastReadAt :: !(Maybe UTCTime)
9898
, notificationUrl :: !URL
9999
}
100-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
100+
deriving (Show, Data, Eq, Ord, Generic)
101101

102102
instance NFData Notification
103103
instance Binary Notification

src/GitHub/Data/Comments.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data Comment = Comment
1919
, commentUser :: !SimpleUser
2020
, commentId :: !(Id Comment)
2121
}
22-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
22+
deriving (Show, Data, Eq, Ord, Generic)
2323

2424
instance NFData Comment
2525
instance Binary Comment
@@ -41,7 +41,7 @@ instance FromJSON Comment where
4141
data NewComment = NewComment
4242
{ newCommentBody :: !Text
4343
}
44-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
44+
deriving (Show, Data, Eq, Ord, Generic)
4545

4646
instance NFData NewComment
4747
instance Binary NewComment
@@ -52,7 +52,7 @@ instance ToJSON NewComment where
5252
data EditComment = EditComment
5353
{ editCommentBody :: !Text
5454
}
55-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
55+
deriving (Show, Data, Eq, Ord, Generic)
5656

5757
instance NFData EditComment
5858
instance Binary EditComment
@@ -66,7 +66,7 @@ data NewPullComment = NewPullComment
6666
, newPullCommentPosition :: !Int
6767
, newPullCommentBody :: !Text
6868
}
69-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
69+
deriving (Show, Data, Eq, Ord, Generic)
7070

7171
instance NFData NewPullComment
7272
instance Binary NewPullComment
@@ -82,7 +82,7 @@ instance ToJSON NewPullComment where
8282
data PullCommentReply = PullCommentReply
8383
{ pullCommentReplyBody :: Text
8484
}
85-
deriving (Show, Data, Typeable, Eq, Ord, Generic)
85+
deriving (Show, Data, Eq, Ord, Generic)
8686

8787
instance NFData PullCommentReply
8888

0 commit comments

Comments
 (0)