elm-lang / elm-make

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

0.18 alpha: main with type `Html a` throws in debug mode #120

Closed lukewestby closed 7 years ago

lukewestby commented 7 years ago

SSCCE:

Main.elm

module Main exposing (main)

import Html

main =
    Html.text "hello"

build.sh

elm-make ./Main.elm --debug

Result: screen shot 2016-10-13 at 10 00 47 am

process-bot commented 7 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 7 years ago

I made a partial fix, but the rest needs a change in the compiler. I think it makes sense to make the decision about main and then do this fix at the same time, so it can all be out in the next batch of binaries. Don't let me forget!

lukewestby commented 7 years ago

Sounds good! I'll check in on elm-dev thread when you release the next binaries

evancz commented 7 years ago

Okay, got a similar report from https://github.com/elm-lang/elm-reactor/issues/209 and made the fix. Thanks again for the report!