This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Add an import to an Elm file. That's it!
version 1.0.4
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.4
Committed At 2016-12-03 16:58:26 UTC
rtfeldman/node-test-runner 3.0.0 <= v < 4.0.0 3.0.1
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1
elm-community/elm-test 3.0.0 <= v < 4.0.0 3.1.0
Bogdanp/elm-combine 3.1.1 <= v < 4.0.0 3.1.1

Modules

README

Add Imports

A tiny module for adding an import to an Elm file. Give it an import, and a string of elm text, and get back that text with the import added (in alphabetical order)

License

Copyright © 2016 Murphy Randle

Distributed under the MIT license.

TODO:

  • [x] Tests for parsing
  • [x] Sort imports alphabetically
  • [x] Test sorting
  • [ ] Add an import when none exist already
  • [ ] Support proper importing of type constructors from within modules