diff --git a/spago.yaml b/spago.yaml index b019fde..722593b 100644 --- a/spago.yaml +++ b/spago.yaml @@ -1,6 +1,7 @@ package: dependencies: - aff + - arrays - effect - either - exceptions @@ -11,6 +12,7 @@ package: - node-buffer - prelude - simple-json + - tailrec - transformers - tuples - typelevel-prelude diff --git a/src/Gitea.Repo.purs b/src/Gitea.Repo.purs index 52f3ed5..7c7a9f5 100644 --- a/src/Gitea.Repo.purs +++ b/src/Gitea.Repo.purs @@ -29,7 +29,7 @@ reposURL (Username owner) (RepoName repo) = build <$> ask repoTopicsPageURL :: forall m. Monad m => Username -> RepoName -> { page :: Int, limit :: Int } -> GiteaT m URL -repoTopicsPageURL o repo {page, limit} = (\repos -> repos / "topics" ? "limit" /\ show limit & "page" /\ show page) <$> reposURL o repo +repoTopicsPageURL o repo { page, limit } = (\repos -> repos / "topics" ? "limit" /\ show limit & "page" /\ show page) <$> reposURL o repo repoTopicsOneURL :: forall m. Monad m => Username -> RepoName -> TopicName -> GiteaT m URL repoTopicsOneURL o repo (TopicName topic) = (\repos -> repos / "topics" / topic) <$> reposURL o repo