Re: [elm-discuss] Re: How do I render a child component in 0.17 (like CounterList)?

2016-05-18 Thread Homan Chou
Interesting... it's like it's own module. I feel like there are a lot of little things like this that aren't covered in any of the getting started guides. On Wed, May 18, 2016 at 1:05 PM, Peter Damoc wrote: > It means that it exports both the type Dispatch and the tag Remove.

Re: [elm-discuss] Re: Knowing if Dict has changed

2016-05-18 Thread Janis Voigtländer
In principle it’s correct. The type needs to be a bit different (comparable instead of a). Moreover, it will still not work reliably if you call it with something where the b type is itself a type that does not have reliable ==. For example, if you call that dictEquals on a Dict Int (Set Int), you

Re: [elm-discuss] [ANN] Elm Style Animation v 1.0.0 - Now with SVG animations

2016-05-18 Thread Peter Damoc
This is awesome! I've updated the Dash docset to honor your release. I can now report that there are some 106 packages that have already made the transition to 0.17 :) On Wed, May 18, 2016 at 12:21 AM, Matthew Griffith wrote: > > Hi All, > > I just released a fairly

Re: [elm-discuss] Re: How to implement wrapping components in elm

2016-05-18 Thread Daniel Kwiecinski
Sounds very promising. Could you please provide minimalist example? On Wednesday, 18 May 2016 13:47:16 UTC+1, Peter Damoc wrote: > > You just use regular Elm Architecture and compose the model of the > autocomplete into the proper place, same with update and view. > > To speak in React

Re: [elm-discuss] Re: How to implement wrapping components in elm

2016-05-18 Thread Peter Damoc
Oh, that's much easier: import Html exposing (..) import Html.Attributes exposing (class) helloComponent name = p [] [text ("Hello, " ++ name ++ "!")] sayHello = helloComponent "world" listHello names = div [] (List.map helloComponent names) -- GENERIC WRAPPING COMPONENT

Re: [elm-discuss] Re: How to implement wrapping components in elm

2016-05-18 Thread Yosuke Torii
Oh, it looks just nesting views (I'm not familiar with ClojureScript though). If so, the solution is much simpler. Like this: ``` container : List (Html msg) -> Html msg container children = div [ style [ ("padding", "20px") ] ] children ``` full version

Re: [elm-discuss] Re: How to implement wrapping components in elm

2016-05-18 Thread Daniel Kwiecinski
Here is a sketch of how it would look like in reagent (ClojureScript) ; -- SOME CONCRETE COMPONENTS ; a component taking a String as a model (defn hello-component [name] [:p "Hello, " name "!"]) ; a stateless component using another component (defn say-hello [] [hello-component

[elm-discuss] Re: Pong example in Elm 0.17

2016-05-18 Thread Wil C
The mario example in 0.17 https://gist.github.com/pdamoc/6f7aa2d3774e5af58ebeba369637c228 On Thursday, May 12, 2016 at 12:59:13 AM UTC-7, Sean Seefried wrote: > > Hi all, > > I just started using Elm about 2 weeks ago. I had a lot of fun playing > with the Pong example and even started making

Re: [elm-discuss] Re: How to implement wrapping components in elm

2016-05-18 Thread Peter Damoc
Can you mock some code that would show how would you like to use this? Imagine that it is already implemented in some library and write against that imaginary library. On Tue, May 17, 2016 at 5:36 PM, Daniel Kwiecinski < daniel.kwiecin...@gmail.com> wrote: > The problem is that the generic