MyNixOS website logo
Description

TrailDB bindings for Haskell.

Check out README.md for information on these bindings.

TrailDB project home page is at traildb.io

Hackage Travis CI

TrailDB Haskell bindings

These are the official Haskell bindings to TrailDB. Most of the API is covered (with the notable exception of filters). Check out System.TrailDB module for some examples and documentation.

How to build

These bindings can be installed using cabal-install or stack on Linux. At least GHC 7.8 is required.

Fetch the code in some way. You can clone [https://github.com/traildb/traildb-haskell]. Then follow these instructions.

You need at least traildb and Judy libraries installed to compile and use these bindings. Judy is a dependency of TrailDB itself so if you have TrailDB the C library installed properly, then most likely you don't need to do anything else regarding dependencies.

cabal-install

Cabal is usually in the package repositories of your distribution.

$ apt-get install cabal-install      # Debian/Mint/Ubuntu
$ dnf install ghc cabal-install      # Fedora 22
$ pacman -S ghc cabal-install        # Arch Linux
$ pkg install hs-cabal-install       # FreeBSD

$ cabal install                      # Run this in the root of traildb-haskell

# Test it out!

$ cd examples
$ ghc tutorial_simple_traildb.hs -o tutorial
$ ./tutorial

After this, bindings should be usable in other Haskell projects by requiring traildb.

stack

Stack is a new fancy Haskell build tool. Because it's new and fancy, it doesn't quite have the same level of presence in Linux package repositories than cabal-install.

You can manually download stack from [http://www.haskellstack.org/] if it's not in your repositories.

# Once you have `stack` in your PATH:

$ stack setup      # May be optional if you have GHC already installed and it can be used
$ stack install

# Test it out!

$ cd examples
$ stack ghc -- tutorial_simple_traildb.hs -o tutorial
$ ./tutorial

License

These bindings are licensed under the MIT license.

How to contribute or report bugs

Use our GitHub page to report issues or to open pull requests.

Example program

Check out examples/tutorial_simple_traildb.hs in this repository.

Metadata

Version

0.1.4.1

License

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows