[elm-discuss] Re: Status of Elm drag-and-drop with html elements

2016-09-07 Thread Sergey Skrynnikov
пользователь Ivan Uemlianin написал: > > I don't think I can, no, I'm not "currently associated with that team". > > Ivan > > > On Wednesday, September 7, 2016 at 2:04:20 PM UTC+1, Sergey Skrynnikov > wrote: >> >> Interesting, I'll l

[elm-discuss] Re: Status of Elm drag-and-drop with html elements

2016-09-07 Thread Sergey Skrynnikov
gt; [1] @ ./src/index.js 6:10-29 > [1] > [1] ERROR in > ./~/css-loader!./~/postcss-loader!./~/sass-loader!./src/styles/main.scss > [1] Module build failed: ReferenceError: Promise is not defined > ... > > Thanks > > Ivan > > > On Wednesday, September 7, 2016 at

[elm-discuss] Re: Status of Elm drag-and-drop with html elements

2016-09-07 Thread Sergey Skrynnikov
I've made a table with drag/drop reordering of rows with a bit of a different approach, it gets the row positions through a port so that in can calculate the drop target based on the mouse position. https://github.com/IwalkAlone/elephant-guide/ - main logic in src/components/deck/update.elm Jame

[elm-discuss] Re: Design of Large Elm apps

2016-08-09 Thread Sergey Skrynnikov
Oh no, just as I make a 3-deep TEA stack in my own app and start to feel good about finally sort of figuring it out, you have to go and post this :D I don't think I've fallen into a trap.. yet.. but it wouldn't be a beginner trap if a beginner could casually avoid it, now would it? Evan's recent

[elm-discuss] Re: How are deeply nested records updated or what alternatives are typically used?

2016-08-02 Thread Sergey Skrynnikov
Hi Austin, I would suggest creating an ArpsParameters module with its own Model and Msg types, update function and so on, then nesting that module within your main model. Then repeat the same process and create a Forecast module. This way you won't need to access deeply nested fields and your m

[elm-discuss] Re: programWithFlags for App using elm-mdl

2016-07-29 Thread Sergey Skrynnikov
Hi Robert, your flags don't have to be of the same type as the model - try modifying your 'init' function to take only your partial state and return (Model, Cmd Msg). пятница, 29 июля 2016 г., 14:14:39 UTC+3 пользователь Robert Walter написал: > > Hello, > > I try to initialize my elm applicati