---
title: "Migrating from edition 0.1"
url: https://una-lang.org/en/docs/editions/migrate-0.1-to-0.2/
release: v0.4.0
source: https://github.com/una-lang/una/blob/v0.4.0/docs/guide/una-for-agents.md
---

# Migrating from edition 0.1

Change `edition = "0.1"` to `"0.2"` in `una.toml`, then check. What can change:

- **New keywords.** `edit`, `take`, `old` and `together` are keywords, and `for` starts a loop: rename bindings that use them.
- **Messages.** `var`, `while`, `loop`, `async` and `await` point to `let edit`, `for` and `together`.
- **Equality on type parameters** needs `Eq`: a public generic function that compares values of `T` writes `[T: Eq]` (U2026). Edition `0.1` inferred the bound.
- **The prelude.** `min`, `max`, `contains` and `sum` are generic over constrained types, `sort`, `set`, `empty_map` and the type `Map` are new (a user kind named `Map` or `Entry` must be renamed), and `map`, `filter`, `first_where` and `fold` take effectful and failing functions (`uses of`, `fails of`).
- **Kinds.** Recursive kinds no longer need a `List` or `Option` field, but must have a finite value; `I8` to `U64` become built-in types, and a kind, variant or capability named like any built-in type, `Int`, `Nat`, `Bool`, `Text`, `Unit`, `Hashed`, `List`, `Option`, `Result`, `Map` or `I8` to `U64`, is U1002 (ADR 0079). A package that declares its own `kind Result` renames it before it moves to edition `0.2`.
- **Integers.** Values of a fixed-width type now carry overflow obligations; `Int` code is unchanged.

The same module can stay in edition `0.1`, where for example `type` keeps its hint and `edit` is still reserved:

```una
-- edition 0.1
-- fails with U0103
module demo

pub change(edit: Int) -> Int = edit
```
