Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rofrol/elm-make-no-warnings
https://github.com/rofrol/elm-make-no-warnings
elm
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rofrol/elm-make-no-warnings
- Owner: rofrol
- Created: 2017-01-15T20:01:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-15T20:14:52.000Z (about 8 years ago)
- Last Synced: 2024-12-20T23:27:21.553Z (about 1 month ago)
- Topics: elm
- Language: Elm
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
No warning from child if you compile second time. You need to remove `elm-stuff/build-artifacts`.
[SSSCCE](http://sscce.org/) for https://github.com/elm-lang/elm-compiler/issues/1558
```shell
$ elm-make Main.elm --warn
=================================== WARNINGS ===================================-- unused import ------------------------------------------------- .\.\Child.elm
Module `Dict` is unused.
3| import Dict
^^^^^^^^^^^
Best to remove it. Don't save code quality for later!-- missing type annotation --------------------------------------- .\.\Child.elm
Top-level value `title` does not have a type annotation.
5| title = "I am child"
^^^^^
I inferred the type annotation so you can copy it into your code:title : String
Success! Compiled 39 modules.
Successfully generated index.html$ elm-make Main.elm --warn
Success! Compiled 1 module.
Successfully generated index.html$ rm -rf elm-stuff/build-artifacts/ && elm-make Main.elm --warn
=================================== WARNINGS ===================================-- unused import ------------------------------------------------- .\.\Child.elm
Module `Dict` is unused.
3| import Dict
^^^^^^^^^^^
Best to remove it. Don't save code quality for later!-- missing type annotation --------------------------------------- .\.\Child.elm
Top-level value `title` does not have a type annotation.
5| title = "I am child"
^^^^^
I inferred the type annotation so you can copy it into your code:title : String
Success! Compiled 39 modules.
Successfully generated index.html
```