Skip to content

Repository files navigation

Build Status Morel mushroom (credit: OldDesignShop.com)

Morel

A functional query language, implemented in Rust.

(There are also implementations in Java and Go.)

Requirements

Morel requires Rust 1.93.1 or higher. Our MSRV (minimum supported rust version) will always be at least 6 months older than the release date. CI tests on MSRV and stable.

Download and build

$ git clone git://github.com/hydromatic/morel-rust.git
$ cd morel-rust
$ cargo build; ./target/debug/morel

Run the Morel shell

$ cargo run
morel-rust version 0.9.0 (rust version 1.93.1)
- "Hello, world!";
> val it = "Hello, world!" : string

Type control+D to exit the shell.

For quick testing, use the -e flag.

$ cargo run -- -e "1 + 2"
val it = 3 : int

$ cargo run -- -e "from i in [1,2,3] where i > 1"
val it = [2,3] : int list

$ cargo run -- -e 'let fun double x = x * 2 in map double [2,3,4] end'
val it = [4,6,8] : int list

Documentation

More information

About

A functional query language, implemented in Rust

Resources

Stars

44 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages