Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Much of this has moved to ekmett/succinct
branch: master

README.markdown

analytics

Build Status

This is a work-in progress project for working with declarative Datalog style programs as an embedded domain-specific language in Haskell.

The current focus is on getting a rich Datalog-esque EDSL that works nicely as a monad transformer, so you can mix and match it with tools from other domains.

Skim the examples folder to get started for now.

Using X, Y and Z as Node variables, and A B and C as Node entities:

test :: Datalog [Edge]
test = do
  edge A B
  edge B C
  edge B A
  tc X Y :- edge X Y
  tc X Z :- tc X Y <* edge Y Z
  query $ row (tc A X) <* no (edge X C)

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell-lens IRC channel on irc.freenode.net.

-Edward Kmett

Something went wrong with that request. Please try again.