If you find some weird compiler behaviour during development try deleting elm-stuff/build-artifacts and compiling again, this usually fixes several issues.
elm-stuff/build-artifacts