Re: [elm-discuss] CSS in Elm: best practices?

2016-09-26 Thread suttlecommakevin
). > > rtfeldman/elm-css is phenomenal at, at the minimum, giving you type safe > styling in Elm. (including pseudo selectors, etc.) > > On Mon, Sep 26, 2016 at 10:51 AM suttlecommakevin <suttleco...@gmail.com > > wrote: > >> I wish CSS was taken more seriously by

[elm-discuss] Newbie syntax confusion in Elm

2016-09-26 Thread suttlecommakevin
I have some confusion with the syntax in Elm, fully realizing that they may have been modeled after Haskell and/or other languages. Here's an example: add : Int -> Int -> Int Why wouldn't this be: add : Int, Int -> Is it because of partial application or currying? -- You received this

Re: [elm-discuss] CSS in Elm: best practices?

2016-09-26 Thread suttlecommakevin
I wish CSS was taken more seriously by Elm. https://groups.google.com/forum/#!topic/elm-discuss/vvJGw1u7NVQ On Sunday, September 25, 2016 at 6:50:07 PM UTC-4, Peter Damoc wrote: > > Regarding 1. I don't see how the compiler can deduce that a certain union > type you used was suppose to have

[elm-discuss] What flavor of JSON is elm-package.json?

2016-09-14 Thread suttlecommakevin
Since npm has struggled with issues like org scoping + multiple registries , and comments inside of package.json , I'm hoping there has been enough forethought put into this file format to avoid the same

[elm-discuss] Re: Proposal for a 1st-class, officially-supported CSS package

2016-09-14 Thread suttlecommakevin
Thanks, Richard. Fair enough, I suppose. 2 final questions: 1. Why not make Elm-CSS an officially-supported core package? 2. Is there a roadmap for Elm-CSS or suggested ways to improve it? -- You received this message because you are subscribed to the Google Groups "Elm Discuss"

Re: [elm-discuss] Re: Nested JSON decoder issue

2016-09-14 Thread suttlecommakevin
A little late, but James Moore has posted his WIP 'Elm: Beyond the Basics' course, which seems to cover this scenario. http://courses.knowthen.com/courses/elm-beyond-the-basics/lectures/1463861 -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group.

Re: [elm-discuss] Proposal for a 1st-class, officially-supported CSS package

2016-09-14 Thread suttlecommakevin
Thanks Richard, Could you elaborate on this statement? I'm having trouble understanding how the Elm compiler, known for it's awesome UX and errors, wouldn't help CSS. You even demoed it. https://www.youtube.com/watch?v=R121YzswY_4 * > I can't think of a time its existence would have saved me

Re: [elm-discuss] Proposal for a 1st-class, officially-supported CSS package

2016-09-14 Thread suttlecommakevin
Hey Nick, I linked to the source implementation in my original post, but it does overlap the API. Noah, > burdening the compiler with excessive language features. I don't see how supporting CSS via native primitives is burdening the compiler. "Excessive" seems diametrically-opposed to

[elm-discuss] Proposal for a 1st-class, officially-supported CSS package

2016-09-13 Thread suttlecommakevin
*Preface* Saying Elm is a language for front-end apps, but leaving out 1/3 of the stack isn't confidence-inspiring. Between our collective experience, I think we can make something awesome and fun to use, while leveraging the features that make Elm a great language. *Problem to be solved*

[elm-discuss] Source for guide.elm-lang.org?

2016-09-02 Thread suttlecommakevin
Where is this? I know it's hosted on GitBook, but the actual source is nowhere to be found. It'd be nice to make PRs against it. -- 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,

Re: [elm-discuss] Re: Basic behavioral composition

2016-09-02 Thread suttlecommakevin
This new doc helps a ton. Thanks for this! http://guide.elm-lang.org/reuse/ -- 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: Elm shell aliases

2016-09-01 Thread suttlecommakevin
Mine: https://github.com/kevinSuttle/dotfiles/blob/master/aliases On Sunday, August 28, 2016 at 4:07:21 PM UTC-4, Max Goldstein wrote: > > Here's my list; I use about two-thirds of them regularly. > > https://github.com/mgold/dotfiles/blob/master/.aliases > > I also use git lg:

[elm-discuss] Building a UI component library: the Elm compiler

2016-09-01 Thread suttlecommakevin
*Forgive me if I have missed something or am asking about something that's been reposted frequently.* Let's use a simple example: a custom set of SVG icons, for use in Buttons. Here are my rookie questions: *Is the Elm compiler: * 1. aware of ES6 modules? - asking this because I'm not

Re: [elm-discuss] Re: Missing deps trying to build elm-lang.org

2016-08-30 Thread suttlecommakevin
Right, and how does one obtain GHC 7.10? On Tuesday, August 30, 2016 at 1:51:50 PM UTC-4, Janis Voigtländer wrote: > > GHC 7.10.x + whatever cabal comes with that + Elm 0.17.1 > > 2016-08-30 19:44 GMT+02:00 suttlecommakevin <suttleco...@gmail.com > >: > >&g

[elm-discuss] Re: Performance in Elm - Comparing Elm, React, Angular, and Ember

2016-08-30 Thread suttlecommakevin
Nice work! Side note: is "naive" meant to be "native"? Noticed it in the screenshot as well. On Tuesday, August 30, 2016 at 10:53:29 AM UTC-4, Evan wrote: > > Finally finished the blog post on performance > ! > > With 0.17, I had to

Re: [elm-discuss] Re: Missing deps trying to build elm-lang.org

2016-08-30 Thread suttlecommakevin
d 0.16, because that’s what’s in the README*. Others have been > scolded for not reading the instructions closely. > > In all fairness, the README of https://github.com/elm-lang/elm-lang.org > says to use 0.17, not 0.16. > ​ > > 2016-08-30 19:30 GMT+02:00 suttlecommak

Re: [elm-discuss] Re: Missing deps trying to build elm-lang.org

2016-08-30 Thread suttlecommakevin
It is not clear that GHC 8.0.1 will fail you (with 0.17.1 of >elm-platform). Have you tried? > > ​ > > 2016-08-30 18:53 GMT+02:00 suttlecommakevin <suttleco...@gmail.com > >: > >> I'm on Mac. I installed *ghc* via brew cask install haskell-platform. &

Re: [elm-discuss] Re: Missing deps trying to build elm-lang.org

2016-08-30 Thread suttlecommakevin
oey Eremondi wrote: > > @suttlecommakevin Are you trying to use Elm from Hackage, or the Elm > platform? Hackage elm is woefully out of date. > > On Tue, Aug 30, 2016 at 9:38 AM, Janis Voigtländer <janis.voi...@gmail.com > > wrote: > >> You don't feel like telling

[elm-discuss] Re: Missing deps trying to build elm-lang.org

2016-08-30 Thread suttlecommakevin
I get missing deps, but because of conflicts that were rejected. https://gist.github.com/kevinSuttle/a867b0d2048f6f6c6f646964061ec3c1 On Thursday, August 14, 2014 at 11:19:13 PM UTC-4, Evan Cameron wrote: > > I've installed elm on arch using a cabal sandbox and the cabal install > methods.

[elm-discuss] Elm shell aliases

2016-08-26 Thread suttlecommakevin
Anyone else too lazy to type the Elm shell commands out? Here's what I use: ``` alias er="elm-reactor" alias em="elm-make" alias ep="elm-package" ``` https://cldup.com/9ghxfO9Xwt.png -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To

Re: [elm-discuss] Managing global state in Elm

2016-08-23 Thread suttlecommakevin
Great question, OP. I've been wondering about the same thing. React has pretty clear "best practices " when it comes to component vs global state, but it's also not immutable by default

[elm-discuss] Re: Will server side elm be a game changer?

2016-08-23 Thread suttlecommakevin
Oh, I did the same. :/ -- 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] Re: Basic behavioral composition

2016-08-23 Thread suttlecommakevin
Yes, a wonderful and much appreciated breakdown, @debois. Couldn't have said it better @Wouter. -- 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: Basic behavioral composition

2016-08-19 Thread suttlecommakevin
gt; MyButton.view [ MyButton.label "blah", MyButton.icon "iconId" ] > ``` > > You can easily enforce the icon to always render before the label is that > is a requirement, regardless of position in the list, etc... etc... > > This is how the `elm-mdl` package wo

[elm-discuss] Re: Will server side elm be a game changer?

2016-08-19 Thread suttlecommakevin
I've been wondering about this myself. Would be interested in hearing what the core team thinks in terms of roadmap. -- 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

[elm-discuss] Basic behavioral composition

2016-08-19 Thread suttlecommakevin
Apologies if this has been posted elsewhere, but I keep coming back to it. Let's get basic. Like *super *basic. I get a spec from a designer for a button with 3 types of children. 1. A button with a label only 2. A button with an icon only 3. A button with an icon *and* a label In