JsonGrammar2
JsonGrammar2 copied to clipboard
Unfortunately, these enumerations don't show up in the docs (related to #5) perhaps; I don't know how to fix this.
(Note that the implementation does not rely on `defaultValue` and hence does not rely on any `Eq` instances.)
Usually an error message is just "empty grammar". This might not be such an easy problem to tackle though.
If I have ``` haskell data RequestSessionUpdate = RequestUpdateSourceFileFromFile RequestFilePath | RequestUpdateGhcOpts RequestGhcOption ``` with corresponding grammar ``` haskell instance Json RequestSessionUpdate where grammar = label "SessionUpdate" $ object $...
If you have a definition such as ``` haskell instance Json RequestSessionUpdate where grammar = label "SessionUpdate" $ object $ mconcat [ property "sessionUpdate" "updateSourceFileFromFile" . fromPrism requestUpdateSourceFileFromFile . prop...
It'd be awesome if we could build a `Grammar` building block to express TypeScript string/number index signatures in such a way that `interfaces` actually generates such index signatures. For example:...
Right now there is hardly any Haddock documentation on the various functions and combinators. We need to write some before we can publish the new version of JsonGrammar on hackage.
aeson has several benchmarks to measure its performance on files of various types and sizes. I'm very interested in how an aeson parser expressed as a JsonGrammar performs in these...