datalog
datalog copied to clipboard
A pure Haskell implementation of Datalog
This branch implements a more strongly-typed data model. Users can specify a custom type system for relations and ensure at compile time that embedded datalog problems respect that type system....
looks pretty great / seems buildable, whats blocking a release atm?
The tests demonstrate how to make a database from scratch and query it. But what if you wanted to add a relationship to an existing database, or assert that a...
I ask because the README says "Rewrite literals like f(X,X) into f(X,Y), X=Y. A few internals assume that the same variable doesn't appear twice in a literal" -- but it...
``` haskell where q = do use
The following code generates a RangeRestrictionViolation in the MagicSets transformation ``` haskell db2 :: Maybe (Database Text) db2 = makeDatabase $ do stateRel
You might consider basing a future REPL on the one in https://github.com/pchiusano/datalog-refactoring which is quite modular.