[elm-discuss] Easy first contribution: reproducing a record error message

2016-08-06 Thread Richard Feldman
If anyone is looking for a first Elm contribution, a SSCCE for this issue is pretty low-hangi

[elm-discuss] Re: elm-format vs gofmt

2016-08-06 Thread Richard Feldman
elm-format puts documentation comments above functions, and treats inline comments as section separators (e.g. *-- VIEW FUNCTIONS --*). Try this: {- update trick array with new trick & cards -} updateTricks : Int -> Ca

Re: [elm-discuss] Re: Should [ 1..5 ] exist?

2016-08-06 Thread Max Goldstein
To un-thread-hijack, is there a piece of code that uses the [a..b] syntax heavily? Can we rewrite it with List.range and see how it looks? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails f

[elm-discuss] elm-format vs gofmt

2016-08-06 Thread Ian Mackenzie
Comment handling can indeed be a bit funny (and elm-format is still under active development, so this may change in the future), but the right solution in this case is probably to use a proper documentation comment for the function instead (one that starts with '{-|' and ends with '-}' - see ht

Re: [elm-discuss] Re: Should [ 1..5 ] exist?

2016-08-06 Thread Ian Mackenzie
Ah, cool, thanks Jonas! I was worried that the 'loading and indexing' step was querying current data from package.elm-lang.org but I guess you're just periodically downloading and caching that data on your own server instead? I look forward to seeing the final version! -- You received this mes

[elm-discuss] elm-format vs gofmt

2016-08-06 Thread William Bailey
My frontend GUI is in ELM. My backend is in GO (aka golang). I love gofmt. Not everything is my taste but can easily live with it for advantages. elm-format makes some choices I just can't abide. Top of list, it insists on sticking TWO blank lines between the comment above a function and the

Re: [elm-discuss] Re: Should [ 1..5 ] exist?

2016-08-06 Thread Jonas Coch
> Someone actually did implement Hoogle-like search for Elm, and it works > pretty well, although using it is probably not kind to the > package.elm-lang.org server: > http://klaftertief.github.io/package.elm-lang.org/ > Sorry for highjacking this thread, but since the search was mentioned I

Re: [elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread FerN
In case it may be of use to someone else I updated GitHub example with solution both of you pointed out. https://github.com/fejnartal/elm-utcombination Credit to: https://github.com/evancz/elm-architecture-tutorial/blob/master/nesting/1-counter-pair.elm El sábado, 6 de agosto de 2016, 19:57:16

Re: [elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread FerN
Precisely, I was about to share that same link. I hadn't seen that example. I may have been focusing too much in tampering with the language and the syntax and completely forgot to read more documentation and examples. Thank you very much for your nice support and suggestions. I think I'll go bac

Re: [elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread Peter Damoc
Fernando, Have you seen the Modularity section of the guide? http://guide.elm-lang.org/architecture/modularity/counter_pair.html How would the counter pair be implemented with your method? On Sat, Aug 6, 2016 at 6:57 PM, Fernando J. Naranjo Talavera < fejnar...@gmail.com> wrote: > Hello every

[elm-discuss] Re: [ANN] elm-mdl 7.0.0 — supports all components of Material Design Lite

2016-08-06 Thread debois
Dear all, Thank you for all the kind words—they are much appreciated! I feel I must repeat that elm-mdl is not just my thing, though: @aforemny and @vipentti did a lot of amazing work, as did a good number of contributors (see Credits

Re: [elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread Joey Eremondi
You use this function: http://package.elm-lang.org/packages/elm-lang/html/1.1.0/Html-App#map Specifically, Html.map EventAction (Counter.view model.counter) This will let you transform your Counter.Event values into Action values. You give your function a transformer function of type (a -> b),

Re: [elm-discuss] Visualizing module dependencies in a project

2016-08-06 Thread Duane Johnson
Cool! I like the compact representation. It would be neat to offer alternate views of the dependency graph as well, but this certainly is a useful start! On Sat, Aug 6, 2016 at 8:04 AM, Yosuke Torii wrote: > Hi all, > > I made elm-dep-check , a > tool for

Re: [elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread FerN
Thank you for your feedback Joey. I haven't though about inference consecuences at all. But I see the point. Regarding your suggestion to create a new Tag: On the one hand: How would I go embedding the Counter.view in my Main.view? Since Counter.view propagates Counter.Events and not Actions, the

Re: [elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread Joey Eremondi
Hi Fernando. Thanks for your input! A few things: 1. Why can't you just do this: type Action = LoginOut | EventAction Events i.e. you create a new tag for Action that lets you use an Events 2. Do you know how this will affect type inference? Elm's type system is nearly maximal, in the sense t

[elm-discuss] Better componentization - Language Addition [Proposal]

2016-08-06 Thread Fernando J. Naranjo Talavera
Hello everyone. I have been experimenting with Elm language for some weeks now, mainly in the areas of Styling and Composition. In all this time I have been struggling to find a suitable solution for Composition and Separation of concerns in Elm when it comes to Medium / Large projects. Sadly, w

[elm-discuss] Visualizing module dependencies in a project

2016-08-06 Thread Yosuke Torii
Hi all, I made elm-dep-check , a tool for visualizing module dependencies in a Elm project. The motivation was just curious to know how my project is working as a whole (which is over 7k LOC large now, btw), but I also think this may be useful to keep El