elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Recursive anonymous functions in List fold consume all CPU #188

Closed jwbrew closed 6 years ago

jwbrew commented 6 years ago

List.foldl (\a b -> b a) () [] does not generate a compiler error and instead spawns multiple processes and consumes all the CPU.

I assume It has something to do with the fact that the type definition for the anonymous function is recursive, a -> b -> (a -> (a -> (a -> ....

process-bot commented 6 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

zwilias commented 6 years ago

Thanks for the report, @jwbrew. Looks like this will be fixed when 0.19 is released :)