Re: [elm-discuss] Parsing JSON — one more victim

2016-07-26 Thread Eduardo Cuducos
aiu/tree/master/cunhajacaiu/static/elm> Many thanks for all the help, guys, Eduardo Cuducos http://cuducos.me/ On Tue, Jul 26, 2016 at 1:47 PM, Peter Damoc <pda...@gmail.com> wrote: > To paraphrase Satchmo, "If lots more of us helped each other, we’d solve > lots more proble

Re: [elm-discuss] Parsing JSON — one more victim

2016-07-27 Thread Eduardo Cuducos
React by Elm in baby-steps. A couple of weeks ago I got rid of react. Today I just completed the full migration of the HTML body to Elm <3 On Wed, Jul 27, 2016 at 6:33 PM Rex van der Spuy <dandylio...@gmail.com> wrote: > > > On Tuesday, July 26, 2016 at 7:27:25 AM UTC-4, Eduardo

Re: [elm-discuss] elm first impressions (and frustrations)

2016-07-31 Thread Eduardo Cuducos
Hi, Neil, Sot sure if it helps, but if your team already use Node, npm install -g elm install it (BTW this is my standard way to get Elm working locally and in production). Best, On Sun, Jul 31, 2016 at 9:06 PM Neil Souza wrote: > ok, i wanted to take elm for a spin after

Re: [elm-discuss] elm first impressions (and frustrations)

2016-07-31 Thread Eduardo Cuducos
But it is, it's the third item (just below Mac and Windows) ; ) On Sun, Jul 31, 2016 at 9:43 PM Neil Souza <nr...@ztkae.com> wrote: > thanks, that's great. that should probably be on the install page. > > > On Monday, August 1, 2016 at 3:23:16 AM UTC+8, Eduardo Cuducos wr

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

2016-08-10 Thread Eduardo Cuducos
I'm quite happy with vim & elmcast/elm-vim. In other news: I'm quite happy but :ElmFormat does not work — yes, the bin is available on my $PATH. Any ideas why? On Wed, Aug 10, 2016 at 3:58 PM Joey Eremondi wrote: > Elm-light is full of features, and actively maintained

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

2017-01-31 Thread Eduardo Cuducos
There was a discussion about the removal of Http.url in this list . Actually I miss that function and usually just copy and paste from Evan's

Re: [elm-discuss] Re: Again: which editor do you like best for Elm?

2017-02-03 Thread Eduardo Cuducos
Hi Dave, I use vim with vim-elm (https://github.com/ElmCast/elm-vim) and with elm-format, it's awesome! Cheers, On Fri, Feb 3, 2017 at 12:48 Dave Rapin wrote: > I'm using Vim. Is there a cli linter? That would be great! > > > On Thursday, February 2, 2017 at 11:53:59 AM UTC-5,

Re: [elm-discuss] Starting Elm, need help understanding -> syntax

2017-02-13 Thread Eduardo Cuducos
number > addTwo 40 42 : number Does that make sense? Eduardo Cuducos http://cuducos.me On Mon, Feb 13, 2017 at 4:42 PM Will Tian <will.w.t...@gmail.com> wrote: Hi, I am having trouble understanding the -> syntax in elm. For example if we have the function: plusTwo x = x + 2 it

[elm-discuss] Elm app crashing in Chrome/Firefox

2016-09-14 Thread Eduardo Cuducos
Hi all, I'm developing a simple internal tool for an open-source project. Basically it's a JSON API in the backend, and the front-end is in Elm. The source code is at github.com/datasciencebr/jarbas (Elm in jarbas/frontend/elm

Re: [elm-discuss] Re: Long form: how to handle model, Msg and update?

2016-09-12 Thread Eduardo Cuducos
; > > You should make it safer by including run-time checks that the first > string argument (fieldName) is one of your 20 possibilities, before doing > the above replacement, and if it isn't then you should specify what to do > (maybe ignore it). > > On Monday, September 12, 20

Re: [elm-discuss] Re: Long form: how to handle model, Msg and update?

2016-09-12 Thread Eduardo Cuducos
> > On Mon, Sep 12, 2016 at 3:16 PM, Eduardo Cuducos <cudu...@gmail.com> > wrote: > >> Many thanks, Ambrose! That was very helpful indeed ; ) Gonna make it work. >> >> On Mon, Sep 12, 2016 at 4:15 PM Ambrose Laing <akla...@gmail.com> wrote: >> >>>

Re: [elm-discuss] Elm app crashing in Chrome/Firefox

2016-09-15 Thread Eduardo Cuducos
e (e.g. Home), not to a URL. > The helpers take care of the actual structure of the url. > > > > On Thu, Sep 15, 2016 at 2:18 PM, Eduardo Cuducos <cudu...@gmail.com> > wrote: > >> Many thanks for you reply, Peter. >> >> Indeed changing tha

Re: [elm-discuss] Elm app crashing in Chrome/Firefox

2016-09-15 Thread Eduardo Cuducos
wrote: > On Wed, Sep 14, 2016 at 11:07 PM, Eduardo Cuducos <cudu...@gmail.com> > wrote: > >> I have no clue about how to starting debugging this. Any ideas? >> > > Looks like a Navigation problem. You keep navigating to the same page and > create an inf

Re: [elm-discuss] Elm app crashing in Chrome/Firefox

2016-09-15 Thread Eduardo Cuducos
Great, many thanks, Peter : ) On Thu, Sep 15, 2016 at 11:11 AM Peter Damoc <pda...@gmail.com> wrote: > The url-parser example shows this: > > https://github.com/evancz/url-parser/blob/master/examples/App.elm#L104 > > > > On Thu, Sep 15, 2016 at 4:30 PM, Eduardo

Re: [elm-discuss] Re: Is a decoder the right level of abstraction for parsing JSON?

2016-09-29 Thread Eduardo Cuducos
This idea makes a lot of sense to me. We, as developers, could go “automagically” from JSON to Model if they match — and the Json.Decode will still be there if one needs to parse a JSON differently. On Thu, Sep 29, 2016 at 12:36 PM 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com>

Re: [elm-discuss] Is this a refresh issue, or something to do with ordering?

2016-09-22 Thread Eduardo Cuducos
Hi David, I've noticed in one of Evan's exemples (repos) that he uses textarea [ value model.whatever ] [] instead of textarea [] [ text model.whatever ]. I haven't studied the reasons why, but in my tests they seem to work (and using the second way ended up in the same bug you described). Can

[elm-discuss] UnexpectedPayload error in Firefox (only)

2016-10-10 Thread Eduardo Cuducos
Hi all, I'm working on an app in Elm and one of my JSON parsers is raising an error only in Firefox. This is the main repo . with the full source at jarbas/frontend/elm . For

[elm-discuss] Re: UnexpectedPayload error in Firefox (only)

2016-10-10 Thread Eduardo Cuducos
Ok, issued solved. Nive guys at Slack pointed me to the real issue: the server is responding differently to Firefox. So it's not an Elm issue ; ) On Monday, October 10, 2016 at 1:40:10 PM UTC-3, Eduardo Cuducos wrote: > > Hi all, > > I'm working on an app in Elm and one of my

[elm-discuss] Problems with `elm-package install`

2016-11-17 Thread Eduardo Cuducos
Hi all, Today I started to have problems with elm-package install. It raises: *Error*: Your .elm/packages/ directory may be corrupted. I was led to beleive that sanichi/elm-md5 existed, but I could not find anything when I went to look up the published versions of this package. First I thought

Re: [elm-discuss] Problems with `elm-package install`

2016-11-17 Thread Eduardo Cuducos
would not work with 0.17.0) On Thu, Nov 17, 2016 at 6:15 PM, Eduardo Cuducos <cudu...@gmail.com> wrote: Many thanks, Peter. Checking the version: $ elm-package elm-package 0.17.1 … Have you tried installing sanichi/elm-md5 in 0.17? Did it work there? Many thanks, On Thu, Nov 17, 2016 at 2

Re: [elm-discuss] Problems with `elm-package install`

2016-11-17 Thread Eduardo Cuducos
ed 0.17.1, removed > ~/.elm, and executed elm-package install in an empty directory) > > Can you provide more information about your system? > > I know this is a silly question but is elm-package --version showing > 0.17.1 ? > > > > > On Thu, Nov 17, 2016 at 4

Re: [elm-discuss] Return of Http.url function

2016-11-18 Thread Eduardo Cuducos
I totally agree that Http.url very useful… People more engaged in elm-dev: are there any chance to include it in a later version of elm-lang/http? Was this even discussed? Many thanks, On Fri, 18 Nov 2016 at 07:57 Andrey N. Ronin wrote: > Hi, folks! > > I offen used

Re: [elm-discuss] control structure

2016-10-12 Thread Eduardo Cuducos
a really good introduction to these new paradigms is this series of articles https://medium.com/@cscalfani/so-you-want-to-be-a-functional-programmer-part-1-1f15e387e536 Hope you enjoy and come back with more doubts ; ) Eduardo Cuducos http://cuducos.me/ On Wed, Oct 12, 2016 at 8:29 AM, Peter

Re: [elm-discuss] Announcing the JSON Survival Kit

2017-01-06 Thread Eduardo Cuducos
Hi all, I was n doubt if I should or should not buy the book because I couldn't find some extra infos. I bought it anyway. So if anyone is still pondering: - Format: PDF ✔️ ePub ✔️ mobi ✔️ all of them available - Length: the PDF version

[elm-discuss] Date.fromString, timezones and browsers

2016-12-27 Thread Eduardo Cuducos
Hi all, I'm parsing dates with date from the json-extra package. It actually uses the Date.fromString

Re: [elm-discuss] Formating numbers

2016-12-16 Thread Eduardo Cuducos
Thanks Nick and Max for the kind words. It's online for everybody now! https://twitter.com/cuducos/status/809986200324964352 Yay! On Fri, Dec 16, 2016 at 11:09 PM Max Goldstein wrote: > You should go for it! Here's a guide I wrote on publishing a package: >

[elm-discuss] Formating numbers

2016-12-16 Thread Eduardo Cuducos
Hi peeps, I needed to format some floats (eg. from 1234.56 to 1,234.56) and I couldn't find a ready-made solution. I confess I haven't searcher much but all I've found was this 3 years old topic from this forum, and some 2 years

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

2017-07-03 Thread Eduardo Cuducos
uss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Eduardo Cuducos http://cuducos.me/ -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop rec