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 hangs on fancy list syntax #4608

Open
dmalikov opened this issue Dec 9, 2018 · 0 comments
Open

Compiler hangs on fancy list syntax #4608

dmalikov opened this issue Dec 9, 2018 · 0 comments

Comments

@dmalikov
Copy link
Contributor

dmalikov commented Dec 9, 2018

The following program hangs on compilation (via idris Stuck.idr -o stuck):

module Main

%default total

f : (Eq a, Show a) => a -> a -> IO ()
f _ _ = pure ()

partial main : IO ()
main =
  f
    [ 10, 21,  5, 22, 11,  1, 12,  6, 13,  3, 14, 7
    ] [1,2]

It looks like the fancy long list become an issue for compiler. Reducing it a bit makes the compilation finish.

Steps to Reproduce

idris Stuck.idr -o stuck the program listed above.

Expected Behavior

The compilation finishes.

Observed Behavior

Compilation appears to hang.

$> idris -v
1.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant