Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Argument Types Use Show Instances That Render Them Invalid #29

Open
KirinDave opened this issue Jun 20, 2019 · 0 comments
Open

Some Argument Types Use Show Instances That Render Them Invalid #29

KirinDave opened this issue Jun 20, 2019 · 0 comments

Comments

@KirinDave
Copy link
Contributor

KirinDave commented Jun 20, 2019

StatusIds, NotificationIds and AccountIds are using a default show instance to render to the API. This means that all GET calls for notifications will not be able to use the "in_reply_to_id" or the "since_id" features.

These probably require a unique instance in their argument type. I've been patching it with instances like this:

instance Show StatusId where
  show = unStatusId

However, this is really not the best option as it makes debugging worse.

KirinDave added a commit to KirinDave/hastodon that referenced this issue Jun 20, 2019
This is a very incomplete fix but does make the
library immediately usable, whereas right now
it will fail on every API call I've tried.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant