evancz / elm-todomvc

The TodoMVC app written in Elm, nice example for beginners.
http://evancz.github.io/elm-todomvc/
BSD 3-Clause "New" or "Revised" License
1.21k stars 329 forks source link

Split into multiple files #45

Closed NilsLattek closed 8 years ago

NilsLattek commented 8 years ago

I could not find a lot of information about splitting elm code into multiple files. And it was a lot trial and error to get this to work. Especially regarding splitting the update/msg stuff into multiple files and keeping the types correctly. It would be nice to have an example app like this which is split into multiple files/smaller components. Would you rather create small files with update and view functions. Or split them like in the redux architecture: Have one folder for all the actions/updates and one for views...

evancz commented 8 years ago

I'd like to keep this one the same. I am working on some learning resources about how to break things into modules in a nice way. That will come out separately.