Skip to main content

Haskell

🚀 Usage​

Add the following command to your CI configuration file:

fluentci run --wasm haskell test
fluentci run --wasm haskell build

Commands​

NameDescription
setupInstall a specific version of Haskell.
buildCompile targets within the project
testRun test-suites
installInstall packages
checkCheck the package for common mistakes
sdistGenerate a source distribution file (.tar.gz)
uploadUpload source package or documentation to Hackage
reportUpload build reports to a remote server

Code examples​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Use the following code to call a module function:

use fluentci_pdk::dag;

// ...

dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"test",
vec![],
);

dag().call(
"https://pkg.fluentci.io/[email protected]?wasm=1",
"build",
vec![],
);

CI/CD pipeline integrations​

The following examples show how to integrate FluentCI with popular CI providers to build and test Haskell projects:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: test
run: fluentci run --wasm haskell test
- name: build
run: fluentci run --wasm haskell build