Welcome! Please see the About page for a little more info on how this works.

0 votes
in algo.monads by
Following snipped will throw a null pointer, the rest of the monads just return "monad fail"-ish.

[org.clojure/algo.monads "0.1.5"]

(use 'clojure.algo.monads)

((domonad state-m [x (m-result 1)
                   :cond [(= x 2)
                          [x (m-result 2)]]]
                   x) {})

It should fail because no matching clause is specified
but a null pointer gives no clue that cond is missing a clause.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/ALGOM-16 (reported by alex+import)
...