haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Intergrating GraphQL and Servent Generically #218

Closed alunduil closed 5 years ago

alunduil commented 5 years ago

I've starting toying with a small library that given a GraphQL Handler and a Proxy api object, a whole standards compliant servant web server can be created. I'm running into issues with the type inference though and I'm not sure if the graphql-api class for HasResolver is to blame.

I'm writing this code and getting these build errors. Everything I can find shows that this is due to the inability to inject the type for api into the class, but I'm still pretty new to type level programming.

Let me know if any other information would be useful or if I'm simply running down the wrong path altogether.

alunduil commented 5 years ago

I'll close this as I found an answer on IRC for applying the ambiguous types. Sorry for the noise.