elm-lang / elm-make

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

elm-make hangs on type mismatch #102

Closed tko closed 8 years ago

tko commented 8 years ago

Made a small type error that apparently puts elm-make indefinitely in a busy loop:

minMax list =
  case list of
    x :: xs ->
      let
        step a (lo, hi) = (min a lo, max a hi)
      in
        List.foldl step x xs   -- should be (x, x) here

    [] ->
      Debug.crash "don't care"

elm-make 0.17 (Elm Platform 0.17.0) installed with brew install elm on El Capitan.

process-bot commented 8 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.

evancz commented 8 years ago

I think this is a duplicate of https://github.com/elm-lang/elm-compiler/issues/1231

If not, it should be moved to elm-compiler anyway. Shouldn't be a elm-make detail that is the root cause.