splodingsocks/elm-add-import

Add an import to an Elm file. That's it!


License
MIT
Install
elm-package install splodingsocks/elm-add-import 1.0.1

Documentation

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:

  • Tests for parsing
  • Sort imports alphabetically
  • Test sorting
  • Support proper importing of type constructors from within modules