Re: [elm-discuss] Re: Moving Color to evancz/graphics

2016-09-29 Thread Janis Voigtländer
Given this: The Gradient type is opaque, so it’s impossible for anyone but evancz/graphics to use it. How about moving the Gradient type and functions related to it to evancz/elm-graphics? ​ -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To

[elm-discuss] Print date/time as text like '3 days ago'

2016-09-29 Thread Jacky See
I'm wondering how can I print a date/time as '3 days ago' like this library http://timeago.yarp.com/ ? What I can think of is to use subscription and Time.every to pass current date time to model for rendering. Is it possible to update current date to model only when update function is called?

[elm-discuss] Re: Moving Color to evancz/graphics

2016-09-29 Thread Matthew Griffith
elm-style-animation accepts the Color types from core as arguments for color property animations. So does my color mixing library (though who knows how many people use that :) I'm working on another library that utilizes it as well. Having a centralized idea of color seems like a pretty

[elm-discuss] Re: elm-make behavior different between localhost dev and production

2016-09-29 Thread OvermindDL1
Not really, exrm is pretty easy (I've not migrated to distillery yet, I have an old project), but I did find https://github.com/epsanchezma/exrm-heroku although it appears pretty old but could try it, if it works then exrm could deploy straight to heroku. On Thursday, September 29, 2016 at

[elm-discuss] What's the convention for modules with more than one word?

2016-09-29 Thread Wil C
Oddly enough, for the stuff I've written in elm, I've not had to name a multi-word module. What's the naming convention for multi-word modules? Is it CamelCase for the module name, but snake_case for the file name? I can't seem to find an example. Wil -- You received this message because

[elm-discuss] Elmish -- Ruby inspired by Elm (I couldn't wait till April 1st)

2016-09-29 Thread j weir
Ruby is not Elm, don't even try to make it something it is not. Not listening to my own advice here is a silly Ruby module which is inspired by Elm. https://github.com/jweir/elmish Punch line here (ie example) below: require './elmish' module Counter extend Elmish Actions %w| Noop

Re: [elm-discuss] How to sell Elm to your client / boss

2016-09-29 Thread Martin DeMello
I think the best way to sell elm to your client/boss is to point to a reasonably large scale project you have done in elm, and talk about your experiences with it. Another alternative is to talk about the benefits you gained from integrating small bits of elm into a larger project. I'd be wary of

[elm-discuss] elm-combine - Josh Adams and Corey Haines pair to create a Game of Life decoder

2016-09-29 Thread Josh Adams
I posted a story on medium wherein Corey and I paired to create a game of life decoder using Bogdan's (excellent) elm-combine. https://medium.com/@dailydrip/josh-adams-and-corey-haines-pair-programming-and-test-driving-a-game-of-life-parser-in-elm-176487214f2d#.xf37z6dau I've started referring

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

2016-09-29 Thread Eduardo Cuducos
This idea makes a lot of sense to me. We, as developers, could go “automagically” from JSON to Model if they match — and the Json.Decode will still be there if one needs to parse a JSON differently. On Thu, Sep 29, 2016 at 12:36 PM 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com>

[elm-discuss] Re: Routing, authentication etc. still on my 3rd Elm project.

2016-09-29 Thread 'Rupert Smith' via Elm Discuss
On Thursday, September 29, 2016 at 12:26:17 PM UTC+1, Wouter In t Velt wrote: > > Very useful to read your experiences with Elm. I am in a more-or-less > similar point on the learning curve. > Small aside: The Elm Exts (extentions) package has a simple function > called catMaybes to filter out

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

2016-09-29 Thread 'Rupert Smith' via Elm Discuss
On Thursday, September 29, 2016 at 4:35:06 PM UTC+1, Rupert Smith wrote: > > I also have a little problem with the 'roles' encode to solve. At the > moment I have: > > , ( "roles" > , case model.roles of > Just roles -> > roles |> List.map

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

2016-09-29 Thread 'Rupert Smith' via Elm Discuss
On Thursday, September 29, 2016 at 4:25:25 PM UTC+1, Rupert Smith wrote: > > Some scnearios that would need to be covered: >> > I also have a little problem with the 'roles' encode to solve. At the moment I have: , ( "roles" , case model.roles of Just roles ->

[elm-discuss] Re: Can anyone get linter-elm-make working on Atom?

2016-09-29 Thread 'Rupert Smith' via Elm Discuss
On Thursday, September 29, 2016 at 3:19:01 PM UTC+1, Magnus Rundberget wrote: > > Have you tried running `elm-make src/elm/Main.elm --output /dev/null` on > your project ? > I did try that and noted that it fails. It succeeds during the grunt build when elm-make is invoked, because all of

Re: [elm-discuss] About `programWithFlags` naming

2016-09-29 Thread OvermindDL1
On Thursday, September 29, 2016 at 8:31:57 AM UTC-6, Bobby Priambodo wrote: > > I don't know if the use case (giving data to Elm app on init) is common > enough to justify doing that, though. > It has been so far for me, but still that is why I suggest having it default to some nil value like

Re: [elm-discuss] About `programWithFlags` naming

2016-09-29 Thread Bobby Priambodo
`programWithArgs` could also work, but I agree that your second option can make it more consistent throughout Elm apps (we will then just have `beginnerProgram` and `program`). I don't know if the use case (giving data to Elm app on init) is common enough to justify doing that, though. On 29

[elm-discuss] Re: Can anyone get linter-elm-make working on Atom?

2016-09-29 Thread halohalospecial
Hi! I cloned https://github.com/rupertlssmith/thesett_style_lab and I think the problem is that your directories are in lowercase (e.g. "menu" instead of "Menu"). Can you try renaming them? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To

[elm-discuss] How to sell Elm to your client / boss

2016-09-29 Thread Thibaut Assus
Hello, I just posted a new blogpost on Medium : https://medium.com/elmlightments/how-to-sell-elm-to-your-client-boss-d2a697e7f8fe#.6t7mtl550 Looking forward for your feedback -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from

[elm-discuss] Re: Can anyone get linter-elm-make working on Atom?

2016-09-29 Thread Magnus Rundberget
Hi ! Have you tried running `elm-make src/elm/Main.elm --output /dev/null` on your project ? I'm getting all kind of errors due to erroneous module naming all over the place. in Main.elm you try to import Main.Types, but Types.elm lives in the root folder (src/elm) so it should be named

[elm-discuss] Re: elm-make behavior different between localhost dev and production

2016-09-29 Thread OvermindDL1
Hmm, I use the same type of setup with the same type of arguments as you though I've not tried heroku. Is the elm version between your dev machine and heroku the same? It looks like you might be using phoenix, you really should be generating a production output of all files on your dev server

Re: [elm-discuss] About `programWithFlags` naming

2016-09-29 Thread OvermindDL1
I'd personally use `programWithArgs`, or just `program` and bake flags in, defaulting to an empty tuple or some other nil type or so that comes from javascript's `undefined`. Like define init via `init () = { blah model }` for the 'no argument' case, that way it accepts 'undefined' from

[elm-discuss] Re: Routing, authentication etc. still on my 3rd Elm project.

2016-09-29 Thread Wouter In t Velt
Very useful to read your experiences with Elm. I am in a more-or-less similar point on the learning curve. Small aside: The Elm Exts (extentions) package has a simple function called catMaybes to filter out Nothings: catMaybes : List (Maybe a) -> List a Link here:

[elm-discuss] elm-make behavior different between localhost dev and production

2016-09-29 Thread Wil C
Hi all, I have a puzzling situation that I hope someone can shed some light on. I'm using elm with elixir, and compiling it with elm-brunch. I'm able to 'brunch build' without a problem locally, but on the remote heroku servers, I get the following problem: remote:Running default

[elm-discuss] Re: Can anyone get linter-elm-make working on Atom?

2016-09-29 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, September 28, 2016 at 4:42:32 PM UTC+1, OvermindDL1 wrote: > > (also get Atom's elmjutsu plugin, made by same person as linter-elm-make > and they work wonderfully together). > That looks very useful. Hopefully one day someone will add 'extract function' and 'inline function' auto