Skip to content

How to use IssueRepoMod ? #286

Description

@andreasabel

The example for issuesForRepo at https://hackage.haskell.org/package/github-0.16.0/docs/GitHub-Endpoints-Issues.html does not seem to work.

issuesForRepo "thoughtbot" "paperclip" [NoMilestone, OnlyClosed, Mentions "jyurek", Ascending]

E.g. OnlyClosed is nowhere defined.
The documentation for IssueRepoMod at https://hackage.haskell.org/package/github-0.16.0/docs/GitHub-Data-Options.html#t:IssueRepoMod just says

data IssueRepoMod

(no constructors exported).
There are a few smart constructors for IssueRepoMod, but all are boring, none lets me, for instance, filter by a milestone or issue status.

I tried to get help by looking at the supplied examples, e.g. https://github.com/phadej/github/blob/master/samples/Issues/IssueReport/Issues.hs

...
import qualified Github.Issues as Github
...
main = do
  let limitations = [Github.OnlyClosed, Github.MilestoneId 4]
  possibleIssues <- Github.issuesForRepo' auth "paulrzcz" "hquantlib" limitations
...

None of this works. For instance, neither Github nor Github.Issues exists as module.

??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions