[elm-discuss] Re: How to order imports?

2016-09-02 Thread Magnus Rundberget
Haha funny this question popped up here now. Yesterday I was implementing a "sort imports" feature for elm-light (Elm plugin for Light Table). I was pondering the same thing. Ended up implementing it like this: - Project modules first (sorted alphabetically) - The External modules sorted

[elm-discuss] Re: How to order imports?

2016-09-02 Thread Charlie Koster
I really wish elm-format re-ordered imports so that I didn't have to care and it'd be consistent internal to my project and across community projects that use elm-format. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this

[elm-discuss] Re: How to order imports?

2016-09-02 Thread Wouter In t Velt
Good question to raise! The lack of any logic in my own imports had on occasion nagged me too. This is our convention: > > 1) Core modules; > 2) Public modules from elm-lang; > 3) Other public modules; > 4) Project modules. > The one @Simone Vittori suggests looks simple and workable. -- You

[elm-discuss] Re: How to order imports?

2016-09-02 Thread Simone Vittori
At my company we have our own conventions, which are always good to have I think, even though the order doesn't really matter in this case. This is our convention: 1) Core modules; 2) Public modules from elm-lang; 3) Other public modules; 4) Project modules. Anyway I see you mentioned List and