Skip to content

infinite type causes compiler hang #1669

Open
@auxsoft

Description

@auxsoft

This bug was already posted in #1380, but that issue was closed in favor of #1231, which was also closed. The notes in this form instructs to visit #1240, but that issue is closed. So I'm posting this issue again. I should mention that I commented in those issues before posting this.

Compiling the following code crashes with out of memory error.

import Array exposing (Array)

fribble x y =
  Array.get y x
    |> Maybe.map (Array.set y x)
    |> Maybe.withDefault x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions