elm-lang / elm-make

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

No "unused function" warnings #137

Closed zaboco closed 7 years ago

zaboco commented 7 years ago

Given I have a file which has a function that is not (1) exposed or (2) used internally, I would expect that elm-make --warn prints some warnings about that. Instead, it just compiles as normally.

module Main exposing (main)

import Html exposing (Html, text)

main : Html msg
main =
    text "Hello World!"

unused : ()
unused =
    ()

Using elm-make 0.18

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

Tracking in https://github.com/elm-lang/elm-make/issues/98, thanks for the suggestion!