summaryrefslogtreecommitdiff
path: root/graphql.cabal
AgeCommit message (Collapse)Author
2020-08-29Release 0.10.0.0v0.10.0.0Eugen Wissner
2020-08-25Validate single root field in subscriptionsEugen Wissner
2020-08-22Remove encoder test based on old external filesEugen Wissner
2020-07-24Release 0.9.0.0Eugen Wissner
2020-07-20Draft the Validation APIEugen Wissner
2020-07-19Return a stream as well from graphql* functionsEugen Wissner
2020-07-17Constrain base monad to MonadCatchEugen Wissner
Let's try MonadThrow/MonadCatch. It looks nice at a first glance. The monad transformer stack contains only the ReaderT, less lifts are required. Exception subtyping is easier, the user can (and should) define custom error types and throw them. And it is still possible to use pure error handling, if someone doesn't like runtime exceptions or need to run a query in a pure environment. Fixes #42.
2020-07-14Support subscriptionsEugen Wissner
This is experimental support. The implementation is based on conduit and is boring. There is a new resolver data constructor that should create a source event stream. The executor receives the events, pipes them through the normal execution and puts them into the response stream which is returned to the user. - Tests are missing. - The executor should check field value resolver on subscription types. - The graphql function should probably return (Either ResponseEventStream Response), but I'm not sure about this. It will make the usage more complicated if no subscriptions are involved, but with the current API implementing subscriptions is more difficult than it should be.
2020-07-06Export sum type for all GraphQL typesEugen Wissner
2020-07-03Check in .cabalEugen Wissner
2019-09-29Ignore graphql.cabalEugen Wissner
This file is generated and for releases another version is generated anyway.
2019-09-27Introduce hspec-megaparsecEugen Wissner
Fixes #13.
2019-09-13Add pending inline fragment testsEugen Wissner
2019-09-10Release 0.5.0.1v0.5.0.1Eugen Wissner
2019-08-14Release 0.5.0.0v0.5.0.0Eugen Wissner
2019-08-13Escape special characters in the encoded stringsEugen Wissner
Fixes #2.
2019-07-23Add singleError utility functionv0.4.0.0Eugen Wissner
2019-07-22Parse the BOM header if anyEugen Wissner
2019-07-17Remove TODOEugen Wissner
Issues should be created instead.
2019-07-10Replace tasty and HUnit with HspecEugen Wissner
2019-07-07Change the main namespace to Language.GraphQLEugen Wissner
2019-07-06Add licence badgeEugen Wissner
2019-07-05Allow resolvers to return arbitrary nested listsEugen Wissner
2019-07-02Introduce monad transformer for resolversEugen Wissner
Now the errors in the resolvers can be handled and 3 tests throwing errors pass now. Another test fail but it requires distinguisching nullable and non-nullable values.
2019-06-30Move the source code into src/Eugen Wissner
2019-06-28Replace Alternative with MonadPlusEugen Wissner
2019-06-21Parse queries with megaparsecEugen Wissner
2019-06-11Add package.yaml, update stack snapshot to 13.25Eugen Wissner
2017-02-02Introduce Tranform moduleDanny Navarro
In the Transform module the Full AST will converted to Core AST. This commit also includes a partial implementation of Fragment replacement.
2017-01-28Split AST in 2Danny Navarro
One AST is meant to be a target parser and tries to adhere as much as possible to the spec. The other is a simplified version of that AST meant for execution. Also newtypes have been replaced by type synonyms and NonEmpty lists are being used where it makes sense.
2016-12-09Parse number as scientific and interpret meaning separately.Tom Hunger
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.
2016-11-27Drop support for GHC-7.8.4Danny Navarro
2016-03-17Add @Tritlo and @solrun as authorsDanny Navarro
2016-03-14Added documentation of functions and modules and included tutorial.lhs.solrun
2016-03-14Added exception handling with Alternative constraint according to spec.Matthías Páll Gissurarson
2016-02-12Split StarWars tests in different modulesDanny Navarro
2016-02-12Handle Field arguments in Schema definitionDanny Navarro
The `Schema` has been overhauled to make `Output` monomorphic. Traversing the `GraphQL` document is handled implicitly while defining the `Schema`. The 4th end-to-end test from `graphql-js` has been ported.
2016-02-08Bump copyright yearDanny Navarro
2016-02-08Extend `execute` for deeper queriesDanny Navarro
The second graphql-js end-to-end test was ported and passed successfully.
2016-02-05Introduce `graphql` functionDanny Navarro
This simplifies Attoparsec parsing when executing a GraphQL query.
2016-01-26GardenDanny Navarro
2016-01-26Rough implementation of `execute`Danny Navarro
The first end-to-end test taken from `graphql-js` passes but this still needs to be extended to support more general cases. - `Data.GraphQL.Schema` has been heavily modified to support the execution model. More drastic changes are expected in this module. - When defining a `Schema` ordinary functions taking fields as input are being used instead of maps. This makes the implementation of `execute` easier, and, arguably, makes `Schema` definitions more *Haskellish*. - Drop explicit `unordered-containers` dependency. `Aeson.Value`s and field functions should be good enough for now.
2015-10-19Implement first StarWars end-to-end testDanny Navarro
`execute` still needs to be implemented.
2015-10-17Test fixtures for Schema toplevelDanny Navarro
This includes simplications to the Schema data types.
2015-10-17Initial stub for a `GraphQL` and `execute`Danny Navarro
2015-09-22Version Bumpv0.3Danny Navarro
This also includes updates to CHANGELOG, TODO and README.
2015-09-22Rename `Data.GraphQL.Printer` -> `Data.GraphQL.Encoder`Danny Navarro
2015-09-22Add kitchen sink parse/encode unit testDanny Navarro
This also includes the fixes to make it work. Golden tests have been removed.
2015-09-21Initial implementation of GraphQL pretty printerDanny Navarro
This just typechecks. It needs to be cleaned and tested. Tests have been deactivated.
2015-09-18GardenDanny Navarro