Skip to content

0.25.0

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Oct 20:02
Immutable release. Only release title and notes can be modified.

What's Changed

New Contributors

Full Changelog: 0.20.0...0.25.0

Roc API Changes

── ✗ type mismatch ─ ../../../.cache/roc/packages/AEjfyaMFFbh8FJrkkHJy68riVNPr3Qp6c6PawWQjBwMH/Locale.roc:318:13

This expression is used in an unexpected way.

decoded == Err(Json.invalid_json)
           ^^^^^^^^^^^^^^^^^^^^^^

It has the type:

    [Err({} -> [InvalidJson(Str)]), Ok(Locale)]

But you are trying to use it as:

    Try(Locale, [InvalidJson(Str)])

── ✗ type mismatch ─ ../../../.cache/roc/packages/AEjfyaMFFbh8FJrkkHJy68riVNPr3Qp6c6PawWQjBwMH/OsStr.roc:257:10

The from_interpolation method on OsStr has an incompatible type.

value = "${name}.toml"
        ^^^^^^^^^^^^^^

The method from_interpolation has the type:

    Str, Iter((Str, Str)) -> OsStr

But I need it to have the type:

    List(Str) -> Try(List(b) -> OsStr, [InvalidInterpolation(Str)])
      where [b.from_quote : Str -> Try(b, [BadQuotedBytes(Str)])]

Hint: This function expects 1 argument but got 2.

── ✗ type mismatch ─ ../../../.cache/roc/packages/AEjfyaMFFbh8FJrkkHJy68riVNPr3Qp6c6PawWQjBwMH/Path.roc:644:9

The from_interpolation method on Path has an incompatible type.

path = "${directory}/app.toml"
       ^^^^^^^^^^^^^^^^^^^^^^^

The method from_interpolation has the type:

    Str, Iter((Str, Str)) -> Path

But I need it to have the type:

    List(Str) -> Try(List(c) -> Path, [InvalidInterpolation(Str)])
      where [c.from_quote : Str -> Try(c, [BadQuotedBytes(Str)])]

Hint: This function expects 1 argument but got 2.

── ✗ type mismatch ─ ../../../.cache/roc/packages/AEjfyaMFFbh8FJrkkHJy68riVNPr3Qp6c6PawWQjBwMH/Url.roc:1390:13

This expression is used in an unexpected way.

decoded == Err(Json.invalid_json)
           ^^^^^^^^^^^^^^^^^^^^^^

It has the type:

    [Err({} -> [InvalidJson(Str)]), Ok(Url)]

But you are trying to use it as:

    Try(Url, [InvalidJson(Str)])

── ✗ package does not compile ──────────────────────────────────────────────────

roc bump failed.

The old package (/Users/runner/.cache/roc/packages/AEjfyaMFFbh8FJrkkHJy68riVNPr3Qp6c6PawWQjBwMH/main.roc) does not compile with this compiler. roc bump needs both packages to compile so their public APIs can be compared.


roc bump exited with status 1.

Docs