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

'In a' is not an instance of QueryParams #3

Open
jartur opened this issue May 31, 2012 · 2 comments
Open

'In a' is not an instance of QueryParams #3

jartur opened this issue May 31, 2012 · 2 comments

Comments

@jartur
Copy link

jartur commented May 31, 2012

No instance for (Database.MySQL.Simple.QueryParams.QueryParams
(In [Int]))
arising from a use of `query'
Possible fix:
add an instance declaration for
(Database.MySQL.Simple.QueryParams.QueryParams (In [Int]))
In a stmt of a 'do' expression:
strs <- query
conn "SELECT us_nick FROM players WHERE us_person_id IN ?" (In ids)

It's actually easy to work around using 'Only $ In ...' but since it is not in docs I think it's a bug.

@bnoordhuis
Copy link

Gentle bump. Would it be possible to upload a new version? The latest docs on hackage still have the bad example. The corrected documentation would have saved me 10 minutes, no doubt it will help others too.

@johannesgerer
Copy link

Gentle Bump!

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

3 participants