[elm-discuss] Unexpected error when parsing what seems to be reasonable code (Bug in parser maybe?)

2017-04-22 Thread Dwayne Crooks
Hi, The following snippet of code: view : Model -> Html Msg > view model = > let > ratingViewConfig = > { Rating.defaultViewConfig | readOnly = model.readOnly } > in > div [] > [ Html.map SetRatingState <| > Rating.view

[elm-discuss] Unexpected parse error for reasonable code (Bug in parser?)

2017-04-22 Thread Dwayne Crooks
Hi, I got the following syntax error: I ran into something unexpected when parsing your code! > 62| { Rating.defaultViewConfig | readOnly = model.readOnly } > ^ > I am looking for one of the following things: > a closing bracket '}' > a lower case name >

[elm-discuss] Re: Scaling Elm

2017-04-26 Thread Dwayne Crooks
How about writing an Elm front-end for https://github.com/gothinkster/realworld. On Wednesday, April 19, 2017 at 5:11:05 AM UTC-4, Peter Damoc wrote: > > Hello community, > > Scaling Elm apps seams to be a recurring topic. > > I was wondering if maybe we could negotiate a minimal set of >

[elm-discuss] Re: Unexpected error when parsing what seems to be reasonable code (Bug in parser maybe?)

2017-04-25 Thread Dwayne Crooks
Thanks guys! Both responses were helpful. -- 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...@googlegroups.com. For more options, visit

Re: [elm-discuss] Unexpected parse error for reasonable code (Bug in parser?)

2017-04-25 Thread Dwayne Crooks
you can > post your specific scenario: > https://groups.google.com/forum/#!searchin/elm-discuss/record%7Csort:relevance/elm-discuss/oWfARte8DJU/6eUvmL-jAwAJ > > Dustin > > > On Apr 21, 2017, at 5:33 PM, Dwayne Crooks <dwayne...@gmail.com > > wrote: > >

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

2017-04-30 Thread Dwayne Crooks
Thanks guys. I explored Noah's approach to see how the solution would turn out. But I didn't like it. The code change required to format a list of floats as money is ridiculous. Here's what I started with https://gist.github.com/dwayne/550341a5b27ba3c03ce7eba92d33873d#file-0-start-elm. And

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

2017-04-29 Thread Dwayne Crooks
I'm porting an application from React/Redux to Elm and I'm having trouble figuring out how to format a value as money. In the original application we used http://openexchangerates.github.io/accounting.js/. So naturally I wanted to make use of that same library when writing the Elm version.

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

2017-05-01 Thread Dwayne Crooks
looks pretty neat. Might help with > some of your features that used highcharts? > > Dustin > > > Sent from my iPhone > > On Apr 30, 2017, at 8:10 PM, Dwayne Crooks <dwayne...@gmail.com > > wrote: > > I posted here as the other thread seems to be closed

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

2017-04-30 Thread Dwayne Crooks
I posted here as the other thread seems to be closed off from replies. For this particular app I'm writing/porting the SPA from scratch to Elm and the formatting issue was the first small hiccup I ran into. As suggested in the other thread I went ahead and wrote the code I needed in Elm. Here