From bbb021b74fc7009fe905b0015ad4cca85bfe0a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 25 Feb 2020 10:15:57 -0800 Subject: Update README with Haskell instructions --- README.md | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e6e23c1..b767268 100644 --- a/README.md +++ b/README.md @@ -4,29 +4,26 @@ A prototype version. ## How to try it out -Install Rust, then: -``` -cargo build -``` -Go to a test directory and execute: +### Install Haskell + +Install Haskell Stack from (https://haskellstack.org/). E.g., to install on +Linux without root access, follow the [manual download](https://docs.haskellstack.org/en/stable/install_and_upgrade/#manual-download_2): ``` -cd tests/1 -../../target/debug/fpm build -../../target/debug/fpm run +wget https://get.haskellstack.org/stable/linux-x86_64-static.tar.gz +tar xaf linux-x86_64-static.tar.gz ``` -And the same in the other test directory (one can also call `run` directly): +and put the `stack` binary in your path, for example by: ``` -cd tests/2 -../../target/debug/fpm run +export PATH="$PATH:`pwd`/stack-2.1.3-linux-x86_64-static/" ``` -## Development Details - -The command line interface (CLI) program `fpm` is build according to the -following Rust CLI tutorial: - -https://rust-cli.github.io/book/index.html +### Build and Test FPM -and the user API is inspired by Cargo. Here is Cargo project layout: - -https://doc.rust-lang.org/cargo/guide/project-layout.html +Build using: +``` +stack build +``` +To test: +``` +stack test +``` -- cgit v1.2.3