forked from OSS/graphql
GraphQL implementation in Haskell
87c92e9d6e
The current parser will fail parsing floats because it parses an int, and then stumbles on the dot. To fix I interpret the value with the scientific library which already is a dependency through attoparsec, so we're not introducing any extra downloads or compiling. I think this is still subtly wrong because "10.0" will be parsed as ValueInt, but because input argument ints are allowed to be coerced into doubles (according to the spec) this is probably acceptable. |
||
---|---|---|
Data | ||
docs/tutorial | ||
tests | ||
.ghci | ||
.gitignore | ||
.travis.yml | ||
AUTHORS.md | ||
CHANGELOG.md | ||
graphql.cabal | ||
LICENSE | ||
README.md | ||
Setup.hs | ||
stack.yaml | ||
TODO |
Haskell GraphQL
For now this only provides the data types to represent the GraphQL AST,
but the idea is to be a Haskell port of
graphql-js
. Next releases
should include:
- GraphQL AST
- Parser for the GraphQL language. See TODO for limitations.
- Printer for GraphQL. This is not pretty yet.
- GraphQL Schema AST.
- Parser for the GraphQL Schema language.
- Printer for the GraphQL Schema language.
- Interpreter of GraphQL requests.
- Utilities to define GraphQL types and schema.
See the TODO file for more concrete tasks.
Contact
Suggestions, contributions and bug reports are welcome.
Feel free to contact on Slack in #haskell on GraphQL. You can obtain an invitation here.