Re: [elm-discuss] http://elm-lang.org/try should support saving

2017-07-04 Thread Witold Szczerba
Or maybe runelm.io 04.07.2017 4:16 AM "Eduardo Cuducos" napisał(a): > Hi Raoul, > > Have you tried Ellie? https://ellie-app.com/ > > ; ) > > > On Mon, 3 Jul 2017 at 23:14 Raoul Duke wrote: > >> hi, >> >> I have hit a syntax issue and was hoping to make a "paste" to be able >> to show to people

Re: [elm-discuss] Idris holes - Thoughts for Elm?

2017-05-22 Thread Witold Szczerba
I think it looks like a good idea. When I am adding new a feature, very often I have such a "holes", implementation details, which I do not want to code at the time of introduction, because I am not sure the final result of my changes. So, in order to make compiler happy, I am improvising with some

Re: [elm-discuss] Attributes not getting removed

2017-05-09 Thread Witold Szczerba
ty of them (the "onClick" could be attached to the wrapping span, or both can have same one). Regards, Witold Szczerba On Tue, May 9, 2017 at 10:00 PM, Kasey Speakman wrote: > Hi, maybe someone has run into this. > > I'm noticing that download and target attributes are not

Re: [elm-discuss] ADL: possible language for serialization

2017-05-07 Thread Witold Szczerba
I like the idea, but without a strong community support to provide bindings for many languages, it can just... fail, I guess. I'm wondering what my colleagues would tell, will show our them tomorrow. 08.05.2017 00:55 "Joey Eremondi" napisał(a): > I saw this on the Haskell Reddit and thought it l

Re: [elm-discuss] File Uploads - as simple as I could manage

2017-05-06 Thread Witold Szczerba
You are right, it wouldn't work as I've thought. Native done right is OK, but the problem is someone has to "approve" the project or it won't be available to others by Elm package. I wonder if it's actually doable. 07.05.2017 12:43 AM "Kasey Speakman" napisał(a): > Err, I should say I made a tra

Re: [elm-discuss] File Uploads - as simple as I could manage

2017-05-06 Thread Witold Szczerba
was wandering if it could work? The original "files" could be then assigned to the body, so Elm would not touch it at all. Would it possibly work? Regards, Witold Szczerba 05.05.2017 7:32 PM "Kasey Speakman" napisał(a): > After a bit of research on file uploads, I pared

Re: [elm-discuss] Re: Elm Textfield + a barcode scanner

2017-05-04 Thread Witold Szczerba
on github with 1000+ open issues and > thought worse of the maintainers. Almost universally, the number of issues > is proportional to interest in the project (see tensorflow or Visual Studio > Code). > > > On 4 May 2017 at 01:04:40, Witold Szczerba (witoldsz@gmail.com) wrote: >

Re: [elm-discuss] Re: Elm Textfield + a barcode scanner

2017-05-03 Thread Witold Szczerba
Here it is: https://github.com/witoldsz/elm-webdriver-problem And the Reddit topic: https://www.reddit.com/r/elm/comments/693v43/elmwebdriverproblem/ I hope it will draw a little bit more attention to the issue. On Sun, Apr 30, 2017 at 2:36 AM, Witold Szczerba wrote: > My issue was w

Re: [elm-discuss] Ports seem contrived when trying to format a value as money

2017-04-30 Thread Witold Szczerba
asised this in both my replies. > Please re-read them. > > Dwayne, please come get help on Slack. People are helpful there, and > we will help drill down into the best possible solution for your > problem. :) > > On Mon, May 1, 2017 at 1:12 AM, Witold Szczerba > wrote: > &g

Re: [elm-discuss] Ports seem contrived when trying to format a value as money

2017-04-30 Thread Witold Szczerba
sons why Native bindings are bad. A >> >> single error in your JS will cause the _entire_ application to crash >> >> unrecoverably. Wrapping things as a result will not help you catch >> >> those errors. Writing carefully thought out and tested code will. >> &

Re: [elm-discuss] Ports seem contrived when trying to format a value as money

2017-04-30 Thread Witold Szczerba
> easier to get to the exact use case you have for your formatting > issue. > > > On Sun, Apr 30, 2017 at 7:03 PM, Witold Szczerba > wrote: > > Ports and subscriptions are for executing actions with effects, in my > > opinion. Native bindings for pure functions are nothi

Re: [elm-discuss] Ports seem contrived when trying to format a value as money

2017-04-30 Thread Witold Szczerba
Ports and subscriptions are for executing actions with effects, in my opinion. Native bindings for pure functions are nothing bad. Just keep away from exceptions, use Result in case of possible troubles. 30.04.2017 4:00 PM "Dwayne Crooks" napisał(a): > Thanks guys. > > I explored Noah's approach

Re: [elm-discuss] Re: Elm Textfield + a barcode scanner

2017-04-29 Thread Witold Szczerba
reproduces the problem? > > This might be a significant issue, since it would impact the possibility > to > > end-to-end test Elm apps. > > > > On Sun, Apr 30, 2017 at 8:28 AM, Witold Szczerba > > > wrote: > >> > >> This was my case with

Re: [elm-discuss] Re: Elm Textfield + a barcode scanner

2017-04-29 Thread Witold Szczerba
This was my case with Selenium WebDriver and Chrome. The end-to-end tests of my Elm application are failing because of this. It was reported back in 2014: https://github.com/elm-lang/elm-compiler/issues/835 The issue is closed, but the bug is still present. You want to know my workaround? It "just

Re: [elm-discuss] Ports seem contrived when trying to format a value as money

2017-04-29 Thread Witold Szczerba
s blow your Elm code. This is why I would suggest wrapping result as a Elm's Result (or a Maybe?). I'm writing using my phone, if you get troubles with this, let us know here, I could help you later. Regards, Witold Szczerba 29.04.2017 14:26 "Dwayne Crooks" napisał(a): I'

Re: [elm-discuss] Re: view function to call other view function with different Msg type

2017-04-25 Thread Witold Szczerba
Msg.Reload else Msg.PayoutList PayoutMsg.RefreshForm ) This button will either refresh my form using local PayoutMsg.RefreshForm or it will call top-level Msg.Reload when errors were encountered previously. Regards, Witold Szczerba On Tue, Apr 25, 2017 a

Re: [elm-discuss] Why `let`?

2017-04-22 Thread Witold Szczerba
eason about. Regards, Witold Szczerba On Sat, Apr 22, 2017 at 10:23 PM, Noah Hall wrote: > Two notes: > > Let bindings do not have order. Using them in the way suggested > implies order. In this world, they would have to be ordered or > confusion would reign. This is more impera

Re: [elm-discuss] Console.log every Time.every

2017-04-04 Thread Witold Szczerba
Can you create an example? Use runelm.io or Ellie. 04.04.2017 9:51 AM "Richard Wood" napisał(a): > Does anyone else see this? > Every time my Time.every sub executes I get a console log that isn't > initiated by my code. > Under the hood it seems it's a Debug.log being called but can't see where

Re: [elm-discuss] Re: Google Places and Elm / Identifying when Elm is mounted

2017-04-04 Thread Witold Szczerba
You can check if that would help: https://www.reddit.com/r/elm/comments/5uqa13/those_fancy_date_pickers_in_elm_watch_this_no/ I used this to "catch" the DOM node each time it was created by Elm, to attach a date picker. Regards, Witold Szczerba 04.04.2017 7:33 AM "Fikse" n

Re: [elm-discuss] Re: Compiler option to disable camel-case record property requirement?

2017-03-30 Thread Witold Szczerba
There is no need to convert JS object to a string. Just declare a Value in your port and now you can decode it as you will. Regards, Witold Szczerba 30.03.2017 7:14 PM "Christian Charukiewicz" napisał(a): > To add onto what Rupert said, my assumption is that you are relyi

Re: [elm-discuss] Cmd.map

2017-03-29 Thread Witold Szczerba
ptable for a > page update to change the CSRF token? If not, then the page update should > not produce a new Model. > > Mark > > On Wed, Mar 29, 2017 at 3:29 PM, Witold Szczerba > wrote: > >> The best solution to deal with your problems is to use Swiss knife of &

Re: [elm-discuss] Cmd.map

2017-03-29 Thread Witold Szczerba
ery time I go back to the other app written in AngularJS, I feel like I am lost in a thick fog. I hope it helps! Regards, Witold Szczerba P.S. My application has grown a little bit since then, the main model is now a little bit different: type Page = NoPage | AnnouncementListPage (WebDa

Re: [elm-discuss] Re: To wrap or not to wrap

2017-03-27 Thread Witold Szczerba
I think it all matters and should be applied only to public libraries and only in order to let them keep the major version number stable as long as possible. It's not always pragmatic to do and I would not bother applying this in local libs/helpers of typical application. On Sun, Mar 26, 2017 at 1

Re: [elm-discuss] How to generate an html select using Dict.foldl

2017-03-27 Thread Witold Szczerba
Oops, it looks the colors have played tricks on us and now we have dark purple text on black background :/ On Mon, Mar 27, 2017 at 11:45 AM, Witold Szczerba wrote: > Here you are, working solution: > https://runelm.io/c/4r0 > > In case runelm.io becomes unavailable: > > mo

Re: [elm-discuss] How to generate an html select using Dict.foldl

2017-03-27 Thread Witold Szczerba
" ) ] listing : Html msg listing = select [ multiple False, size 10 ] (data |> Dict.toList |> List.map (\( k, v ) -> option [ value (toString k) ] [ text v ]) ) main : Html msg main = listing Regards, Witold Szczerba On Mon, Mar 27,

Re: [elm-discuss] Embedding multiple elements into JS

2017-03-23 Thread Witold Szczerba
OK, so what exactly is the problem in your case? 22.03.2017 3:36 PM "Matt Joiner" napisał(a): > I'm looking to embed Elm in an existing web application gradually. I find > it most appropriate in my projects to embed multiple elements, not a single > parent element. For example I have some bootst

Re: [elm-discuss] How do you handle dependencies between updaters?

2017-03-21 Thread Witold Szczerba
this everywhere. Each and every update function: - takes the specific message, so it make a full case…of, - takes the global/top level Model - returns the global/top level tuple (Model, Cmd Msg) I think it's the most simple and flexible solution. Regards, Witold Szczerba On Mon, Mar 2

Re: [elm-discuss] 1st newbie question - how to decompose the unwieldy Msg and Update

2017-03-09 Thread Witold Szczerba
Feldman: https://www.reddit.com/r/elm/comments/5jd2xn/how_to_structure_elm_with_multiple_models/ The answer starting with: "Here's my general advice." Regards, Witold Szczerba On Wed, Mar 8, 2017 at 4:17 AM, Alex Rice wrote: > Hi all, I am new to Elm, and functional p

Re: [elm-discuss] Re: Post Examples of Painful Record Updates Here!

2017-03-05 Thread Witold Szczerba
the view/update functions always return top level models and messages. Regards, Witold Szczerba On Mon, Mar 6, 2017 at 12:41 AM, Martin Bailey wrote: > Hi Francesco, thanks for sharing the example. > > I agree that's a good structure for different sections of an app. I > ove

Re: [elm-discuss] Re: Task ports: A proposal to make it easier to integrate JS with Elm.

2017-03-04 Thread Witold Szczerba
by "Promises/A+ standard specification" were widely used before any browser provided a default ES6 implementation. This is really a great step forward compared to the callback equivalent. Regards, Witold Szczerba On Wed, Aug 24, 2016 at 7:42 PM, Maxwell Gurewitz wrote: > My only comment

Re: [elm-discuss] How decode nested Json Structure

2017-03-02 Thread Witold Szczerba
Hi, having a super-quick scan of your code, look at this line: |> required "data" Decode.list You say: "data" is a list of… you did not tell what kind of list. Have to go now, so you are on your own, but just focus on this problem. Regards, Witold Szczerba On Thu,

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-03-01 Thread Witold Szczerba
So, you ask for a list of mutations and then, for each mutation you repeat exactly the same procedure which is not related to the mutation you are currently at. Why are you iterating over mutations? Regards, Witold Szczerba On Wed, Mar 1, 2017 at 4:59 PM, 'Rupert Smith' via Elm Dis

Re: [elm-discuss] Under what conditions will a node in the DOM be deleted and replaced?

2017-02-28 Thread Witold Szczerba
ut did not have time to do it yet. What kind of editor are you using? What exactly is your "content" value, "Overlay.editedValue" and "markdownView" functions doing? Regards, Witold Szczerba On Tue, Feb 28, 2017 at 6:11 PM, 'Rupert Smith' via Elm Discuss <

Re: [elm-discuss] Re: Constructor function for extensible records / Json.Decoding of object hierarchies

2017-02-28 Thread Witold Szczerba
, Witold Szczerba On Tue, Jan 3, 2017 at 5:40 AM, Leo Zhang wrote: > Sorry to necropost, but this problem bit me recently. Here's my use case. > > I'm working on an client that displays albums, static images, and animated > images. The backend (which is third-party, so I can&

Re: [elm-discuss] Elm Architecture in Vanilla JS

2017-02-25 Thread Witold Szczerba
thing useful there. https://hackernoon.com/how-i-converted-my-react-app-to-vanillajs-and-whether-or-not-it-was-a-terrible-idea-4b14b1b2faff#.zgqzwurva Regards, Witold Szczerba On Sun, Feb 26, 2017 at 12:52 AM, Robert Muller wrote: > Greetings. I'm an OCaml guy, teaching Web Apps for th

Re: [elm-discuss] How up update sub-models ...

2017-02-25 Thread Witold Szczerba
rds, Witold Szczerba On Sat, Feb 25, 2017 at 10:08 PM, Michael Johnson < michael.a.johnson...@gmail.com> wrote: > Hello, new to elm and experimenting around with it and I'm not sure how to > update a sub model. I have not run across an example of this form yet. > Given the

Re: [elm-discuss] Elm and contenteditable

2017-02-25 Thread Witold Szczerba
/those_fancy_date_pickers_in_elm_watch_this_no/ input [ class "form-control date-range" , value <| formatMaybeDuration item.duration , onDateRangePicker DurationChanged *-- see demo for details* ] [] Regards, Witold Szczerba On Fri, Feb 24, 2017 at 4:30 PM, Josh Szmajda wrote: > I'm working with http://git

Re: [elm-discuss] can't understand compiler error

2017-02-23 Thread Witold Szczerba
en try :) That's one of the beauties of functional languages like Elm: there is so much you can tell about the code without actually reading it. Looking at the signatures gives you so much information. In JavaScript you have to carefully read each line and only then you can (try to) reason wh

[elm-discuss] Fancy date pickers (or other widgets) with no ports/subscriptions: my solution.

2017-02-18 Thread Witold Szczerba
uqa13/those_fancy_date_pickers_in_elm_watch_this_no/ I hope someone will find it useful. Regards, Witold Szczerba -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@google

Re: [elm-discuss] Re: Refactoring application to extract model, update and some actions

2017-02-05 Thread Witold Szczerba
I have read excellent article about this: https://medium.com/elm-shorts/a-reusable-dropdown-in-elm-part-1-d7ac2d106f13 I could not figure out the concept of structuring Elm application without components, until I read that. I highly recommend it, even if you have found your way. On Sun, Feb 5, 20

Re: [elm-discuss] elm-lang/http and evancz/elm-http

2017-02-04 Thread Witold Szczerba
+1 from me on showing the Elm version on the package page and search result list for each item. Right now, I always go to sources and look at the elm-package.json to make sure. 04.02.2017 4:48 PM "Gordon Klaus" napisał(a): > I also stumbled over the switch from evancz/elm-http to elm-lang/http.

Re: [elm-discuss] How do you discard an Html message?

2017-01-27 Thread Witold Szczerba
The solution mentioned here from time to time (I have used it as well) is to treat text "" as… well… as nothing. On Fri, Jan 27, 2017 at 4:45 PM, 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com> wrote: > Having a dozy moment again... > > If I have some view that returns an Html MyFu

Re: [elm-discuss] Re: Forms with Floats / Dates

2017-01-22 Thread Witold Szczerba
r messages was looking for error not equal to empty string. So, the idea with number fields: type alias FloatField = { input: String, value: Maybe Float } is like a variation of that one (you could add error here as well). Regards, Witold Szczerba On Sun, Jan 22, 2017 at 9:36 AM, Simon wrote: &g

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

2016-12-23 Thread Witold Szczerba
It's all here: https://github.com/elm-lang/virtual-dom/issues/55 and here: https://github.com/elm-lang/virtual-dom/issues/74 23.12.2016 02:24 "Max Goldstein" napisał(a): > 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

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

2016-12-23 Thread Witold Szczerba
As soon as I've found the workaround with polyfill I have described it in the issue mentioned here. The pull request with a fix was also tagged and linked there. Regards, Witold Szczerba 23.12.2016 02:24 "Max Goldstein" napisał(a): If you have a polyfill to fix a 17 ->

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

2016-12-22 Thread Witold Szczerba
pull-request looks like a proper fix and the RAF polyfill, when applied, also makes the application work on old browsers. Lucky us! :) On Thursday, December 22, 2016 at 11:01:52 PM UTC+1, Witold Szczerba wrote: > > Hi there, > Maybe some of you are where I was while ago, thinking abo

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

2016-12-22 Thread Witold Szczerba
porting to 0.18, beware of that bug until it's fixed and if you are working on new app, check by yourself if it's going to work for all your customers :) Regards, Witold Szczerba -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group.

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Witold Szczerba
Looking at https://github.com/evancz/url-parser it seems that this library is covering only very basic parsing capabilities, there should be more complete libs in the public package repository though. Regards, Witold Szczerba On Sun, Dec 11, 2016 at 10:35 PM, Charlie Koster wrote: > If I u

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-11 Thread Witold Szczerba
Why is it so important that your links does not start with a `#` aka fragment part? Regards, Witold Szczerba On Sun, Dec 11, 2016 at 4:51 PM, Charlie Koster wrote: > I think I came up with a workable solution by adding a tiny bit of > abstraction. > > import Html exposing (Attrib

Re: [elm-discuss] elm-lang/Navigation with hash and query string

2016-12-10 Thread Witold Szczerba
ifference between: http://localhost:8080/#test?a=b&c=d and http://localhost:8080/ Regards, Witold Szczerba On Sat, Dec 10, 2016 at 3:06 AM, Nick H wrote: > I would call this not a bug, since it conforms to the URL standard > <https://url.spec.whatwg.org/#url-syntax>. in your second ex

Re: [elm-discuss] Noob questions re the http example

2016-11-25 Thread Witold Szczerba
Or "List String". Or "Result Http.Error String". When "a" is something like this, you have to put it in the parenthesis or compiler would think you are providing more parameters to "A" instead of "List" or "Result", you know what I mean:

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Witold Szczerba
I have it, I have it, look at this: type Maybe a = Nothing | Maybe a It's very popular to name constructor after type in many languages. case msg of Maybe This -> ... Maybe That -> ... Nothing -> ... Also, "Just" is just fine as well. 24.11.2016 10:21 PM "Michael B" napisał(a): > Maybe a = N

Re: [elm-discuss] Re: Edit Table Cell

2016-11-20 Thread Witold Szczerba
Just my 2 cents: instead of (sometimes) cryptic: type Msg = Input Int Int String one can use something more explicit like: type Msg = Input {row: Int, col:Int, value: String} It depends on the very case though, too verbose does not help either :) Regards, Witold Szczerba On Sun, Nov 20, 2016 at

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-20 Thread Witold Szczerba
Something would be too long in my opinion. 20.11.2016 6:16 PM "Will White" napisał(a): > I'm talking about Maybe.Just, of course. Just has always seemed strange to > me, as if it's hinting that it's something other than just the counterpart > to Nothing. I don't know the reasons behind its namin

Re: [elm-discuss] Re: Correct use of port subscriptions in a submodule reused multiple times?

2016-11-16 Thread Witold Szczerba
Thanks for the extended feedback :) I will be back here once I have something big enough! Regards, Witold Szczerba On Wed, Nov 16, 2016 at 10:13 AM, Wouter In t Velt wrote: > Op dinsdag 15 november 2016 23:03:31 UTC+1 schreef Witold Szczerba: >> >> Thank you, Wouter for exp

Re: [elm-discuss] Re: Correct use of port subscriptions in a submodule reused multiple times?

2016-11-15 Thread Witold Szczerba
e kind of hybrid approach would emerge? Thanks, Witold Szczerba On Mon, Nov 14, 2016 at 10:58 AM, Wouter In t Velt wrote: > Op maandag 14 november 2016 02:24:16 UTC+1 schreef Witold Szczerba: >> >> Can you provide some real-life example of "moving away from component

Re: [elm-discuss] Re: Why Range syntax got removed in favor of List.range

2016-11-15 Thread Witold Szczerba
building" blocks just get in the way. Regards, Witold Szczerba On Tue, Nov 15, 2016 at 11:59 AM, 'Andrew Radford' via Elm Discuss < elm-discuss@googlegroups.com> wrote: > Lists are pretty core, I don't really have a problem with short expressive > syntax that reads

Re: [elm-discuss] Re: Why Range syntax got removed in favor of List.range

2016-11-14 Thread Witold Szczerba
I think List.range is just fine. No need for special syntax and strange function names like ".." (hard to browse, find online, etc.). On Mon, Nov 14, 2016 at 10:29 PM, أحمد حبنكة wrote: > What do you think about my suggestion in previous reply ? replacing > List.range with List.(..) operator ? >

Re: [elm-discuss] Re: Correct use of port subscriptions in a submodule reused multiple times?

2016-11-13 Thread Witold Szczerba
ly small (literally one page) and easy app. My web app experience so far is mostly AngularJS (since the early/ancient days of 0.9 versions). In AngularJS more or less everything is about "components". Can you provide some real-life example of "moving away from components"? That could

Re: [elm-discuss] How do I subscribe to an event at a fixed point in time?

2016-11-08 Thread Witold Szczerba
You could propably "tick" (as in example from docs) every few seconds and return Cmd.none if you're before expiration, and some other Cmd otherwise. Does it make sense? Regards, Witold Szczerba 08.11.2016 5:22 PM "'Rupert Smith' via Elm Discuss" < elm-disc

[elm-discuss] elm-reactor or elm-live after completing "first steps"

2016-11-04 Thread Witold Szczerba
"join" backend with frontend? Or something else? Thanks, Witold Szczerba -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubs

Re: [elm-discuss] Elm GUI component library

2016-10-24 Thread Witold Szczerba
g the foldable tree, skinnable to mimic many OSes, but also auto downloading data from server. Integration seems to be few lines of code. There always will be 100x more JS libs than Elm ones. We should think how to make them live together easily in Elm apps, not the other way around. Regards, W

Re: [elm-discuss] (at least) one example of each function in the standard library

2016-10-16 Thread Witold Szczerba
Good idea. Yesterday I was browsing Angular2 documentation and they have it. Also the RamdaJS lib which I use a lot makes great use of examples. It's often faster to figure out what the function does by looking at the example than description. It is how our brain works, I guess. 16.10.2016 7:09 AM

Re: [elm-discuss] Re: Which text editor do you prefer for Elm?

2016-10-04 Thread Witold Szczerba
Recently I've tried the VS Code. Installed the elm plugin and it works like a charm. I'm positively surprised. 04.10.2016 12:05 PM "Dénes Harmath" napisał(a): > Thank you very much for pointing to elmjutsu, it provides the IDE features > that I was missing! :) > > 2016. augusztus 10., szerda 16:

Re: [elm-discuss] elm-new, a CLI tool for initializing new Elm projects

2016-10-01 Thread Witold Szczerba
Making it available through "npm install" is great as one can easily decide between global and local installation. I really don't like global installs, it complicates things: makes version conflicts between projects, forces us to write project installation manuals, etc… On Mon, Aug 8, 2016 at 9:20

Re: [elm-discuss] elm-html version of raw html element doesn't have same properties of html element

2016-10-01 Thread Witold Szczerba
e not to leak the handlers, I mean do not add them more than once or if you have to then remember to always clean them by disposing the handler once it's not needed. Regards, Witold Szczerba On Sat, Oct 1, 2016 at 3:05 AM, Timothy Williams wrote: > Yes, this seems to be correct. I entere

Re: [elm-discuss] elm-html version of raw html element doesn't have same properties of html element

2016-09-30 Thread Witold Szczerba
Maybe your js code acts too early, when there is no element yet in the DOM? 30.09.2016 8:35 AM "Timothy Williams" napisał(a): > I have this elm-html element: > > Html.a [href "#menu-toggle", class "btn btn-default", id "menu-toggle" ] > [ text "Toggle Menu" ] > > which is a direct transl

Re: [elm-discuss] Eureka - Touch in 0.17!!

2016-07-08 Thread Witold Szczerba
Hi, I am not really helpful in this very topic, but just wanted to say that the game of yours makes my laptop's fan go crazy. The CPU usage widget confirms the game burns one CPU like in hell :) As to the Elm as an application environment: I did not write anything in Elm yet, however my intuition

Re: [elm-discuss] How to implement a custom event handler onEnter

2016-06-11 Thread Witold Szczerba
Maybe, if your model would track the current value, so it would have a list of entered values and current value, you could render the "current value" in "newInputView" function and explicitly set it to empty string on enter… On Sun, Jun 12, 2016 at 2:53 AM, Witold Szcz

Re: [elm-discuss] How to implement a custom event handler onEnter

2016-06-11 Thread Witold Szczerba
I am wondering if the thing is that the browser itself keeps the value of the input field. You never specifies it's value, so maybe it is not covered by virtual DOM to real DOM diff, kind of "I don't care"…? On Sun, Jun 12, 2016 at 2:00 AM, Rindra Ramamonjison wrote: > Hi, > > I have tried imple

[elm-discuss] effect module … where {…} exposing …

2016-05-30 Thread Witold Szczerba
omething so new it's just not there yet or I can't find it? What does it mean? Is it something very special, part of Elm's syntax, or is it just an instance of some template/generic kind of module? Thanks, Witold Szczerba -- You received this message because you are subscribed to t

Re: [elm-discuss] Update 2 Child Components with Msg from 1

2016-05-29 Thread Witold Szczerba
Hi, I am just experimenting with Elm, haven't done anything yet, so I will be watching how this thread evolves. Looking at your case, I have but one question: what's the model of the component you have problem with? Regards, Witold Szczerba 29 maj 2016 21:06 "David" napisał(a