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
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
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
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
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
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
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:
>
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
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
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.
>> &
> 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
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
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
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
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'
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
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
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
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
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
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
&
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
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
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
" ) ]
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,
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
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
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
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
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
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,
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
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 <
,
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&
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
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
/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
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
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
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
+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.
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
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
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
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 ->
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
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.
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
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
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
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:
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
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
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
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
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
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
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 ?
>
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
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
"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
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
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
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:
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
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
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
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
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
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
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
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
72 matches
Mail list logo