Skip to content

Conversation

@NorfairKing
Copy link

Here's a way to support apis like this:

https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#list-repositories-accessible-to-the-user-access-token

I just realised it should also be possible to do this with a special Foldable type like this

data WithTotalCount (key :: Symbol) a = WithTotalCount { totalCount :: Int, values :: [a] } 

Up to you which you prefer.
If you don't want this patch then that's fine and I'll make such a foldable instead.

@NorfairKing
Copy link
Author

@NorfairKing NorfairKing closed this Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant