From b61a65fb9ed75ef80cbc3125f2539fc31c7bae0f Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 13 Feb 2021 10:57:32 +0100 Subject: [PATCH] [skip ci] doc --- doc/news.md | 3 +-- doc/projects.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/news.md b/doc/news.md index 5e290d10..1d7262d5 100644 --- a/doc/news.md +++ b/doc/news.md @@ -17,8 +17,7 @@ Twitter. - [Elisp](https://gist.github.com/llacom/f391f41cbf4de91739b52bf8bb1a6d54) and cider commands to spawn a babashka repl and connect to it - [klein](https://gist.github.com/borkdude/c34e8e44eb5b4a6ca735bf8a86ff64fa), a lein imitation script built on deps.edn - -#clojure +- [failjure](https://github.com/adambard/failjure) works with babashka. ## 2021-01 diff --git a/doc/projects.md b/doc/projects.md index 45b9e0f0..271441c2 100644 --- a/doc/projects.md +++ b/doc/projects.md @@ -33,6 +33,7 @@ The following libraries and projects are known to work with babashka. - [cljc.java-time](#cljcjava-time) - [environ](#environ) - [gaka](#gaka) + - [failjure](#failjure) - [Pods](#pods) - [Projects](#projects-1) - [babashka-test-action](#babashka-test-action) @@ -435,6 +436,20 @@ div#foo { text-decoration: none;} ``` +### [failjure](https://github.com/adambard/failjure) + +Working with failed computations in Clojure. + +``` clojure +(require '[babashka.deps :as deps]) + +(deps/add-deps '{:deps {failjure/failjure {:mvn/version "2.1.1"}}}) + +(require '[failjure.core :as f]) + +(f/fail "foo") +``` + ## Pods [Babashka pods](https://github.com/babashka/babashka.pods) are programs that can