jteeuwissen / json-logic-haskell Goto Github PK
View Code? Open in Web Editor NEWJsonLogic library for Haskell
License: MIT License
JsonLogic library for Haskell
License: MIT License
Probably using aeson FromJSON instance.
Not sure what the alternative approach was.
For automated testing it would be useful to have generators
Probably best to generate haskell code equivalent next to it so we know what result to expect
F.e generate these two in the same generator. We take the Haskell as expected and json as result.
JSON: JsonObject $ Map.singleton "+" (JsonArray [JsonNumber 1, JsonNumber 2])
Haskell: ((+) 1 2)
Also keep in mind that some need numeric json as parameters whilst others need booleans.
So generatorNumericJson
generatorBoolJson
generatorStringJson
are some of the generators to expose for testing purposes
Write a show instance so it is easily readable from the terminal.
Use haddock to generate documentation in the pipeline.
Could be pushed to several endpoints including Wiki.
Determine what make the most sense and is supported.
This time trying only to implement this feature
Write a show instance so it is easily readable from the terminal.
Pretty print the JSON so it is a readable format.
Maybe use the aeson for this since it is already implemented there
Test var using generators
Generators are written in #23
Use them in randomized tests, the expected result is also given in the generator
So they do not pile up after running.
Also remove the image if this does not remove the cache layers.
Write generators for the data section
also one that is able to generate a json containing a specific section
See this issue for more information.
{"var":[["propname",2,"prop.name"],"backup"]}
(+) :: Operation
(+) = ("+", evaluateMath (Prelude.+))
(-) :: Operation
(-) = ("-", evaluateMath (Prelude.-))
(+), (-) :: Operation
(+) = ("+", evaluateMath (Prelude.+))
(-) = ("-", evaluateMath (Prelude.-))
Also invalid JSON needs to get tested. Now we only test for succes result.
Generators still need to get defined for invalid JSON. but should be doable using already written generators
Tests exist, but not everything is tested yet.
So we can have the docker build logs without image clashes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.