-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some of the calls are by nature paged, so I'e added support to githubapi.hs along the lines indicated this morning in the lecture. There are now two calls locally for runClientM in Guthubapi.hs: a non recursie one and a recursie one. The detail is hidden away from the client usage in lib.hs by some typing fun. To gie you a hint, the call to a github api method in lib.hs is now a partial function that gets completed only in runClientPagedM (which adds a page number and env) and runClientM (which adds the env). So in Lib.hs you will see the calls being more simple, with no env created. That's paid for in GithubAPI.hs, where the code has got a little more sophisticated.
- Loading branch information
1 parent
588fb98
commit cb6f5b5
Showing
4 changed files
with
123 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters