Re: [elm-discuss] Re: Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Noah Hall
FWIW there's a patch I've been working on to make change detection more consistent. I'll release it as 4.1.2 soon On Fri, Dec 23, 2016 at 6:34 AM, Nathan Eldridge wrote: > I'm not certain of your configuration, but in our current project we pretty > much use the standard: > > // This loader can b

[elm-discuss] Re: Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Nathan Eldridge
I'm not certain of your configuration, but in our current project we pretty much use the standard: // This loader can be in commonConfig or the production/development section seperately. module: { loaders: [ { test: /\.elm$/, exclude: [/elm-stuff/, /node_modules/], loader: 'elm-ho

[elm-discuss] Re: Our little, failed Elm 0.18 deployment

2016-12-22 Thread Max Goldstein
If you have a polyfill to fix a 17 -> 18 regression, you should make a pull request to core, or at least write up a blog post explaining the problem and solution. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group a

[elm-discuss] Re: Our little, failed Elm 0.18 deployment

2016-12-22 Thread Witold Szczerba
Little backup: while I was preparing for writing a 0.17 port of the app, my colleague told me about his finding that the problem is related to the Window.requestAnimationFrame(). He was working on a fix and I was looking for a workaround and as far as I can see we've both succeeded. His pull-r

[elm-discuss] Re: Elm-make freezes !

2016-12-22 Thread Murphy Randle
I just had a similar thing happen. Try removing elm-stuff, and then running `elm-package install` *first* before you run `elm-make`. That seemed to fix it for me. On Tuesday, December 13, 2016 at 7:28:15 AM UTC-7, Sébastien FLOURE wrote: > > frozen at 92/156 ! > > > Any log available ? any idea

[elm-discuss] Our little, failed Elm 0.18 deployment

2016-12-22 Thread Witold Szczerba
Hi there, Maybe some of you are where I was while ago, thinking about introducing Elm to a production system. The small (tiny) app, ideal for trying something new. The problem is we didn't actually check if it does work with all browsers our customers use and we've got the hard lesson soon after d

Re: [elm-discuss] Re: Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Martin DeMello
I've never had webpack file watching work robustly for me. I finally just bound a vim hotkey to "touch Main.elm" which was an adequate workaround. martin On Thu, Dec 22, 2016 at 9:50 AM, Simon wrote: > I just updated my skeleton app using webpack to 0.18. There was a bug in > elm-webpack-loader

[elm-discuss] Re: Web Components in Elm

2016-12-22 Thread 'Rupert Smith' via Elm Discuss
Also, some native code is needed to allow one Elm Program to include another as a web component. Internally to Elm it looks like swapping events between two Programs, but 'natively' beneath this, the included component would be a 'web component' meeting the spec. On Thursday, December 22, 2016

[elm-discuss] Re: Web Components in Elm

2016-12-22 Thread 'Rupert Smith' via Elm Discuss
On Thursday, December 22, 2016 at 12:26:09 PM UTC, Peter Damoc wrote: > > Has any of you attempted to implement a web components system for Elm? > > What I'm looking for is a exploration that allows for web components to be > defined in Elm with the help of some kind of Native module. > In other

[elm-discuss] Re: Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Rex van der Spuy
It's possible that your elm-webpack-loader is pointing to the wrong > executable. > Thanks Nathan! Everything else seem fine so it seems that this is likely the problem. Do you know where this needs to be set? I noticed this from the README in elm-webpack-loader but I wasn't sure where or

[elm-discuss] Faster subscription logic: A thought

2016-12-22 Thread Mark Hamburg
When I look at applications I've built in the past and the parts of them that would naturally be represented using subscriptions — e.g., subscriptions for image status (or even image data) on a grid of images — I worry about how well they scale. In particular: * As I understand it, subscriptions i

[elm-discuss] Re: Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Simon
I just updated my skeleton app using webpack to 0.18. There was a bug in elm-webpack-loader but that has now been fixed. See https://github.com/simonh1000/elm-hot-loader for details (I am seeing the watching breaking after 5 or so rebuilds, which is a bit frustrating. I had that before and retu

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Simon
> all I really need are just grid layouts and buttons with ripple effects flexbox and e.g. https://ghinda.net/article/css-ripple-material-design/ ? On Thursday, 22 December 2016 18:42:49 UTC+1, Mike MacDonald wrote: > > That looks really nice. Even if one does not wish to use it directly, > havi

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Mike MacDonald
That looks really nice. Even if one does not wish to use it directly, having examples of reusable ways to make such controls is hugely useful pedagogically. On Thursday, December 22, 2016 at 9:02:03 AM UTC-5, Dave Rapin wrote: > > What are your thoughts on elm-ui? I quite like it (prefer it to e

[elm-discuss] Re: Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Nathan Eldridge
I know this is a pretty obvious solution, but have you doubled checked your package.json file? My current project started with elm-webpack-starter with several tweaks. When I ran elm-upgrade it did skip over that. You could also be trying to use an installed version of elm-make instead of the

Re: [elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Fabrice Marchal
Another example where I don't see how to avoid reading the DOM: to edit an SVG text, we put on top a non-resizeable textarea that grows in height as the user types. I do that by reading the offsetHeight of the textarea on each key 'input' and adjust the svg. One could compute the text size from

[elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Fabrice Marchal
Thanks! It could be helpful. On Thursday, December 22, 2016 at 2:53:13 PM UTC+1, Rex van der Spuy wrote: > > > > >> 1. Is someone working on an higher-level SVG library than elm-lang/svg ? >> Im thinking about support for path intersection, bounding box operations, >> etc. >> >> I don't know if

[elm-discuss] Re: Visualizing project dependencies

2016-12-22 Thread Justin Mimbs
Thanks, Wouter! Glad to hear that. I don't plan to take it down (it's hosted on Github). I agree, it gives a good overview of a project's structure, regardless of its folder structure. Justin On Thursday, December 22, 2016 at 5:49:46 AM UTC-5, Wouter In t Velt wrote: > > Op donderdag 22 decemb

Re: [elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Nick H
Yes, I agree with Rex. The DOM is write-only by design. Going forward, I don't expect there ever to be a generic way to read the DOM... if specific problems come up that absolutely require it, they will be solved by specific APIs, such as in elm-lang/window and elm-lang/dom. On Thu, Dec 22, 2016 a

[elm-discuss] Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Rex van der Spuy
Hi Everyone, I'm trying to figure out the best way to get my newly upgraded 0.18 code to work with an existing elm-webpack-starter installation. My new code works fine in reactor, but elm-webpack-starter is still trying to compile it as 0.17. Can anyone suggest how to turn-on 0.18 compilation i

[elm-discuss] Idea: Wrap up Expect.* functions to make parentheses in elm-test omittable

2016-12-22 Thread Yuji Yamamoto
*Problem* The parentheses in elm-test are visually noisy. For example: all : Test all = describe "Unit test examples" [ test "Addition" <| \() -> -- <= HERE! Expect.equal (3 + 7) 10 , test "String.left" <| \() -> -- <= HERE!

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Dave Rapin
What are your thoughts on elm-ui? I quite like it (prefer it to elm-mdl actually), and am considering it for a real project. How does it match up with the current Elm recommendations? http://elm-ui.info/ On Thursday, December 22, 2016 at 2:07:29 AM UTC-5, Peter Damoc wrote: > > On Wed, Dec 21,

[elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Rex van der Spuy
> Currently the solution seems to be 1) compute the bounding box manually > inside the update function whenever the selection is modified, 2) keep > the bounding box data in the model and 3) use the bounding box from the > model when the update function performs other operations on the model

[elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Rex van der Spuy
> 1. Is someone working on an higher-level SVG library than elm-lang/svg ? > Im thinking about support for path intersection, bounding box operations, > etc. > > I don't know if this is what you're looking for, but it's excellent: http://package.elm-lang.org/packages/MacCASOutreach/graphicsvg

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Rex van der Spuy
Peter, as usual, a brilliant and lucid explanation!!! Thanks so much for patiently summarizing all this, it makes perfect sense. So I wonder now what I should do? - elm-mdl?: Looks like it might die on the vine, and the fork many not survive another Elm version bump. - web components and Polym

[elm-discuss] Web Components in Elm

2016-12-22 Thread Peter Damoc
Has any of you attempted to implement a web components system for Elm? What I'm looking for is a exploration that allows for web components to be defined in Elm with the help of some kind of Native module. In other words, I'm looking for automation of the process, something that would allow the de

Re: [elm-discuss] type vs type alias

2016-12-22 Thread Will White
See also http://faq.elm-community.org/#what-is-the-difference-between-type-and-type-alias. On Monday, December 19, 2016 at 12:24:50 AM UTC, Joey Eremondi wrote: > > Use type alias when you want an abbreviation for a long type name. If you > don't want to write List (Dict String SomeVal) over an

[elm-discuss] Re: (Elm logo license.)I want to make Elm logo stickers and distribute them

2016-12-22 Thread Will White
If part of the purpose is to raise Elm's profile with people who haven't seen the logo before then I'd suggest including "Elm" or "elm-lang" in the sticker too, so they have something to look up if they don't ask you what it is. On Sunday, December 18, 2016 at 11:55:14 PM UTC, hsw wrote: > > >

[elm-discuss] Re: Visualizing project dependencies

2016-12-22 Thread Wouter In t Velt
Op donderdag 22 december 2016 07:16:32 UTC+1 schreef Justin Mimbs: > > To see it, you can play with this example > , showing > dependencies of knewter/time-tracker > . Clicking a module name will >

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Simon
Would be great if elm-mdl became the next target for Evan's API video series Simon On Thursday, 22 December 2016 11:40:56 UTC+1, Simon wrote: > > This is a brilliant post! > > On Thursday, 22 December 2016 08:07:29 UTC+1, Peter Damoc wrote: >> >> On Wed, Dec 21, 2016 at 8:02 PM, Rex van d

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Simon
This is a brilliant post! On Thursday, 22 December 2016 08:07:29 UTC+1, Peter Damoc wrote: > > On Wed, Dec 21, 2016 at 8:02 PM, Rex van der Spuy > wrote: >> >> Can anyone explain what's going on? >> > > I haven't been following elm-mdl lately but maybe I can provide some > historical context. >

[elm-discuss] Re: What up with elm-mdl?

2016-12-22 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, December 21, 2016 at 7:02:15 PM UTC, Rex van der Spuy wrote: > > But there's there's a MichealCombs28 fork of elm-mdl for 0.18. > Should I use that instead? > I'm using it until a new debois/elm-mdl becomes available. Seems to work just fine. -- You received this message because y

[elm-discuss] Re: How to structure Elm with multiple models?

2016-12-22 Thread David Legard
One method which was suggested for Messages is that you define them all in a 'super-module' which is imported by Main and any other modules that need them module Global exposing (..) type Msg = NoOp | Home | GoBack | ... | ... ...then... module Main exposing (..) import Global exposing (Msg