An open API service indexing awesome lists of open source software.

https://github.com/mrmurphy/elm-add-import

Add an import to an Elm module
https://github.com/mrmurphy/elm-add-import

Last synced: 11 days ago
JSON representation

Add an import to an Elm module

Awesome Lists containing this project

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:

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