Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler crash on generic comparable tuples in let-bindings #1793

Open
sergey-salnikov opened this issue Sep 8, 2018 · 0 comments
Open

Compiler crash on generic comparable tuples in let-bindings #1793

sergey-salnikov opened this issue Sep 8, 2018 · 0 comments
Labels

Comments

@sergey-salnikov
Copy link

Elm version: 0.19.0
OS: Linux, Ubuntu 18.04

Compiler crashes on the following code

module Main exposing (f)


f : comparable -> Bool
f x =
    let
        result =
            ( 0, x ) < ( 1, x )
    in
    result

Error message is the same as in #1748:

$ elm make src/Main.elm
elm: ./Data/Vector/Generic/Mutable.hs:703 (modify): index out of bounds (3,3)
CallStack (from HasCallStack):
  error, called at ./Data/Vector/Internal/Check.hs:87:5 in vector-0.12.0.1-IfIQAgrX0q07Xkx6bkYLRX:Data.Vector.Internal.Check
elm: thread blocked indefinitely in an MVar operation

Adding concrete top-level type (f : Int -> Bool) or subannotation (result : Bool) avoids the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants