# Cure v0.35.0 - Bug fixes and monadic pipes

**URL:** <https://erlangforums.com/t/cure-v0-35-0-bug-fixes-and-monadic-pipes/5953>\
**Category:** Cure Forum\
**Tags:** cure-news\
**Created:** [September 17, 2026, 5:45am UTC](https://erlangforums.com/t/cure-v0-35-0-bug-fixes-and-monadic-pipes/5953 "2026-09-17T05:45:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudasobwa](https://erlangforums.com/user_avatar/erlangforums.com/mudasobwa/32/231_2.png) [@mudasobwa](https://erlangforums.com/u/mudasobwa)\
**Post date:** [September 17, 2026, 5:45am UTC](https://erlangforums.com/t/cure-v0-35-0-bug-fixes-and-monadic-pipes/5953/1 "2026-09-17T05:45:00Z")

</div>

**`v0.35.0`** is there.

This is mostly a polish/small bug fix release. Also, monadic pipes are landed.

Was:

```elixir
  ## Move amount from available balance into hold
  fn reserve(ledger: Ledger, id: Int, amount: Exchange.Money.Money) -> Result(Ledger, String) =
    match find_account(ledger.accounts, id)
      Error(e) -> ledger_error(e)
      Ok(account) ->
        match Exchange.Money.subtract(account.balance, amount)
          Error(e) -> ledger_error(e)
          Ok(new_balance) ->
            match Exchange.Money.add(account.held, amount)
              Error(e) -> ledger_error(e)
              Ok(new_held) ->
                ledger_ok(update_account(ledger, Account{account | balance: new_balance, held: new_held}))

```

Now:

```elixir
  ## Move amount from available balance into hold
  fn reserve(ledger: Ledger, id: Int, amount: Exchange.Money.Money) -> Result(Ledger, String) =
    find_account(ledger.accounts, id)
    |account|> Exchange.Money.subtract(account.balance, amount)
    |new_balance|> Exchange.Money.add(account.held, amount)
    |new_held|> update_account(ledger, Account{account | balance: new_balance, held: new_held})

```
