Skip to content

Usage of Each induces a Unison Runtime error: SetAff called with bad handler reference #5947

@Baccata

Description

@Baccata

Bug description

I'm getting a Unison Runtime error when running the following program

Image

To reproduce :

In UCM

clone @baccata/smithy/@baccata/bug-report
run example.main

Edit : more minimal reproduction

Here's a minimal program that showcases the problem. It seems to arise with the Each ability.

repro = do
  update n = do Store.modify (m -> m Nat.+ n)
  list =  (List.range 0 10) |> List.map update
  withInitialValue 0 do
    Each.run do (each list)()

Environment

  • ucm --version : release/0.5.49'
  • OS/Architecture: Apple M1 Max, MacOS 15.4.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions