Skip to content

Commit 2caf0f4

Browse files
committed
Some samples no longer worked due to references to the removed githubUserLogin function.
1 parent cb51332 commit 2caf0f4

File tree

17 files changed

+17
-17
lines changed

17 files changed

+17
-17
lines changed

samples/Gists/Comments/ShowComment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ main = do
99
(Right comment) -> putStrLn $ formatComment comment
1010

1111
formatComment comment =
12-
(Github.githubUserLogin $ Github.gistCommentUser comment) ++ "\n" ++
12+
(Github.githubOwnerLogin $ Github.gistCommentUser comment) ++ "\n" ++
1313
(formatGithubDate $ Github.gistCommentUpdatedAt comment) ++ "\n\n" ++
1414
(Github.gistCommentBody comment)
1515

samples/Gists/Comments/ShowComments.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ main = do
1010
(Right comments) -> putStrLn $ intercalate "\n\n" $ map formatComment comments
1111

1212
formatComment comment =
13-
(Github.githubUserLogin $ Github.gistCommentUser comment) ++ "\n" ++
13+
(Github.githubOwnerLogin $ Github.gistCommentUser comment) ++ "\n" ++
1414
(formatGithubDate $ Github.gistCommentUpdatedAt comment) ++ "\n\n" ++
1515
(Github.gistCommentBody comment)
1616

samples/Issues/Comments/ShowComment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ main = do
99
possibleComment
1010

1111
formatComment comment =
12-
(Github.githubUserLogin $ Github.issueCommentUser comment) ++
12+
(Github.githubOwnerLogin $ Github.issueCommentUser comment) ++
1313
" commented " ++
1414
(show $ Github.fromGithubDate $ Github.issueCommentUpdatedAt comment) ++
1515
"\n" ++ (Github.issueCommentBody comment)

samples/Issues/Comments/ShowComments.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ main = do
1111
putStrLn $ intercalate "\n\n" $ map formatComment issues
1212

1313
formatComment comment =
14-
(Github.githubUserLogin $ Github.issueCommentUser comment) ++
14+
(Github.githubOwnerLogin $ Github.issueCommentUser comment) ++
1515
" commented " ++
1616
(show $ Github.fromGithubDate $ Github.issueCommentUpdatedAt comment) ++
1717
"\n" ++ (Github.issueCommentBody comment)

samples/Issues/Events/ShowEvent.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ formatEvent event = formatEvent' event (Github.eventType event)
3333
formatEvent' event Github.Assigned =
3434
"Issue assigned to " ++ loginName event ++ " on " ++ createdAt event
3535

36-
loginName = Github.githubUserLogin . Github.eventActor
36+
loginName = Github.githubOwnerLogin . Github.eventActor
3737
createdAt = show . Github.fromGithubDate . Github.eventCreatedAt
3838
withCommitId event f = maybe "" f (Github.eventCommitId event)

samples/Issues/Events/ShowIssueEvents.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ formatEvent event = formatEvent' event (Github.eventType event)
3333
formatEvent' event Github.Assigned =
3434
"Issue assigned to " ++ loginName event ++ " on " ++ createdAt event
3535

36-
loginName = Github.githubUserLogin . Github.eventActor
36+
loginName = Github.githubOwnerLogin . Github.eventActor
3737
createdAt = show . Github.fromGithubDate . Github.eventCreatedAt
3838
withCommitId event f = maybe "" f (Github.eventCommitId event)

samples/Issues/Events/ShowRepoEvents.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ formatEvent event =
3535
formatEvent' event Github.Assigned =
3636
"assigned to " ++ loginName event ++ " on " ++ createdAt event
3737

38-
loginName = Github.githubUserLogin . Github.eventActor
38+
loginName = Github.githubOwnerLogin . Github.eventActor
3939
createdAt = show . Github.fromGithubDate . Github.eventCreatedAt
4040
withCommitId event f = maybe "" f (Github.eventCommitId event)
4141
issueNumber = show . Github.issueNumber . fromJust . Github.eventIssue

samples/Issues/Milestones/ShowMilestone.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ formatMilestone milestone =
1919
formatDueOn Nothing = ""
2020
formatDueOn (Just milestoneDate) = ", is due on " ++ dueOn milestoneDate
2121

22-
loginName = Github.githubUserLogin . Github.milestoneCreator
22+
loginName = Github.githubOwnerLogin . Github.milestoneCreator
2323
createdAt = show . Github.fromGithubDate . Github.milestoneCreatedAt
2424
dueOn = show . Github.fromGithubDate

samples/Issues/Milestones/ShowMilestones.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ formatMilestone milestone =
1919
formatDueOn Nothing = ""
2020
formatDueOn (Just milestoneDate) = ", is due on " ++ dueOn milestoneDate
2121

22-
loginName = Github.githubUserLogin . Github.milestoneCreator
22+
loginName = Github.githubOwnerLogin . Github.milestoneCreator
2323
createdAt = show . Github.fromGithubDate . Github.milestoneCreatedAt
2424
dueOn = show . Github.fromGithubDate

samples/Issues/ShowIssue.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ main = do
99
possibleIssue
1010

1111
formatIssue issue =
12-
(Github.githubUserLogin $ Github.issueUser issue) ++
12+
(Github.githubOwnerLogin $ Github.issueUser issue) ++
1313
" opened this issue " ++
1414
(show $ Github.fromGithubDate $ Github.issueCreatedAt issue) ++ "\n" ++
1515
(Github.issueState issue) ++ " with " ++

0 commit comments

Comments
 (0)