Closed chshersh closed 3 years ago
I think of introducing modules like:
GitHub.Repository
GitHub.Issues
GitHub.PullRequests
GitHub.Title
GitHub.Author
GitHub.Connection
And the main GitHub
module will just reexport those modules. Each such module contains:
*ToAst
function(s)What do you think?
Looks great! ππΌ
Do we want to have GraphQL
prefix somewhere?
@vrom911 Good question... On the one hand, I want to keep module names short. On the other hand, it makes sense to mention GraphQL
in the module name somewhere to be consistent with the library name π€
I propose to keep GitHub.GraphQL
prefix only for GraphQL related API (types, AST, rendering), and GitHub
for the rest. I like having only import qualified GitHub
in the users' code, and I don't think that long names will be convenient...
GitHub GraphQL API is huge! And it won't be ideal to keep all types in the same single module. So let's refactor a bit and move them into separate modules.