Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-11-03 Thread Ed Ilyin
Richard, multiple Polymer elements can be styled mostly by using native CSS mixins (like https://elements.polymer-project.org/elements/paper-dropdown-menu): --paper-dropdown-menu-button A mixin that is applied to the internal menu button {} How to do that using your elm-css library? Il giorno ven

Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-11-03 Thread Peter Damoc
This is pretty awesome. Have you given the talk in Vienna? Is this part of that talk? :) On Thu, Nov 3, 2016 at 6:54 PM, Richard Feldman wrote: > FYI I got Google Maps working based on Fred's calendar repo: > https://github.com/rtfeldman/elm-google-maps > > -- >

Re: [elm-discuss] Changing root font size

2016-11-03 Thread Jacky
yea, that will do. Thank you. On Fri, Nov 4, 2016 at 2:34 AM, Duane Johnson wrote: > If you need to change it, what if you use a "style" element embedded in > your html? i.e. > > > import Html exposing (Html, node) > import Json.Encode exposing (string) > import

Re: [elm-discuss] Changing root font size

2016-11-03 Thread Duane Johnson
If you need to change it, what if you use a "style" element embedded in your html? i.e. import Html exposing (Html, node) import Json.Encode exposing (string) import Html.Attributes exposing (property) {-| Return a `style` HTML tag, to be used for inline CSS styling -} style' : String -> Html

Re: [elm-discuss] Re: Debugging json decoders

2016-11-03 Thread Chris Baker
I know I'm kind of late to the party here, but I was having this same problem, so I wrote some code to log the error message: traceDecoder : String -> JD.Decoder msg -> JD.Decoder msg traceDecoder message decoder = JD.value `JD.andThen` \value -> case JD.decodeValue decoder value of

[elm-discuss] Re: Elm's SSCCEs

2016-11-03 Thread Jacek Panasiuk
I think Jamison Dance gives great concrete examples in his talk from React Conf https://youtu.be/txxKx_I39a8?t=9m45s As for JS's shortcomings... there is no shortage of those: https://gist.github.com/MichalZalecki/c964192f830360ce6361 W dniu czwartek, 3 listopada 2016 10:23:29 UTC+1 użytkownik

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

2016-11-03 Thread OvermindDL1
I did precisely the same style in https://github.com/OvermindDL1/elm-jsphoenix too, to minimize the duplication of work (which also increased by elm removing the ability to extend record types into a new type, and lacking the ability to move Dict's across, so those two things still add some,

[elm-discuss] Re: Interactive maps with Elm 0.17 : recommendation?

2016-11-03 Thread Richard Feldman
I have a proof of concept of using the Polymer Google Maps element in Elm: https://github.com/rtfeldman/elm-google-maps I haven't really documented what I did terribly well, and I haven't used it for a serious project, but seemed to work well...hope it's at least somewhat helpful. :) -- You

Re: [elm-discuss] Re: Integrating Elm with Web Components / Polymer

2016-11-03 Thread Richard Feldman
FYI I got Google Maps working based on Fred's calendar repo: https://github.com/rtfeldman/elm-google-maps -- 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] Re: Is a decoder the right level of abstraction for parsing JSON?

2016-11-03 Thread Kasey Speakman
I first started using Elm's recommended codec-ing scheme. I found that if I needed to round-trip an entity to an API, I needed *4 representations* of the same entity. One on the client and one on server is given. But then 1 encoder representation and 1 decoder representation... both of which

[elm-discuss] Elm's SSCCEs

2016-11-03 Thread John Orford
We all love Elm, but when talking about it with people who know only JS, are there any nice Simple Self Contained Correct Examples, of JS' shortcomings and Elm's advantages. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from