Re: [elm-discuss] Arbitrary length currying

2017-11-06 Thread Ray Toal
isomorphic to the Haskell example. > You just have to explicitly name all of the function applications in Elm. > > > On Nov 6, 2017 11:53 AM, "Ray Toal" <ray@gmail.com > > wrote: > > Thanks but I was looking not for the obvious, practical approac

Re: [elm-discuss] Arbitrary length currying

2017-11-06 Thread Ray Toal
: > > The solution for the list version is very straightforward in elm: > https://ellie-app.com/g4DpfMDxPa1/0 > > On Sun, Nov 5, 2017 at 10:39 PM, Ray Toal <ray@gmail.com > > wrote: > >> There's an interesting problem on the Programming Puzzles and Stack >> Exc

[elm-discuss] Arbitrary length currying

2017-11-05 Thread Ray Toal
There's an interesting problem on the Programming Puzzles and Stack Exchange on arbitrary length currying here: https://codegolf.stackexchange.com/questions/117017/arbitrary-length-currying. It asks for a function f behaving as follows: f () = 0 f (3)(9)(2)() = 14 This is trivial in

Re: [elm-discuss] Best practices for designing models in the Elm Architecture - lean or rich?

2017-07-25 Thread Ray Toal
ike >> >> bmiText : Model -> Html msg >> bmiText {weight, height} = >> weight / height ^ 2 |> toString |> text >> >> this way, everywhere you need that textual representation, you can use >> it. >> >> >> >> >> O

[elm-discuss] Best practices for designing models in the Elm Architecture - lean or rich?

2017-07-24 Thread Ray Toal
This might be an opinion-based question so I can't ask it on StackOverflow. :-) I have a trivial beginnerProgram using the Elm Architecture. It has two text fields (HTML input elements), one for weight and one for height. The onInput attributes of each generate a message. The update function

[elm-discuss] Re: Forms with Floats / Dates

2017-07-22 Thread Ray Toal
Has there been any consensus on this question. I would _love_ to know if there is a preferred Elm style for this. It seems like a very big deal. Here's what I can glean from the thread so far. (I hope this post reactivates the discussion.) 1. Floats and Dates and other such things are commonly

[elm-discuss] Re: Looking for an Elm example I once saw but can no longer find

2016-07-25 Thread Ray Toal
Oh I think it's this http://ravichugh.github.io/sketch-n-sketch/releases/v0.3/ On Monday, July 25, 2016 at 3:53:36 PM UTC-7, Ray Toal wrote: > > Seems to me I one saw a nice example in Elm, on github perhaps, of a > project in which one there was code on the left, canvas on the ri

[elm-discuss] Looking for an Elm example I once saw but can no longer find

2016-07-25 Thread Ray Toal
Seems to me I one saw a nice example in Elm, on github perhaps, of a project in which one there was code on the left, canvas on the right (a la Bret Victor's Inventing on Principle talk), and you could manipulate the canvas objects on the right, and the code on the left would change in real

[elm-discuss] Re: Elm logo copyright / usage guidelines

2016-07-13 Thread Ray Toal
I'm bringing this up again because I'd like to use the Elm Logo in a book. Do we bother Evan directly? On Saturday, March 26, 2016 at 11:56:55 AM UTC-7, Erik Simmler wrote: > > Does anyone know the formal copyright status of the Elm logo? > > We'd like to put a modified version of the Elm logo

Re: [elm-discuss] Why can the source code for the Html module not use a type variable after Html?

2016-05-27 Thread Ray Toal
e: > > You are looking at outdated documentation. That's all. The current > documentation of td has the type variable. > > Am 27.05.2016 um 17:42 schrieb Ray Toal <ray@gmail.com >: > > Hi > > I wanted to write > > tableCell : a -> Html > tableCell

[elm-discuss] Re: Cannot get elm-community/elm-test to work as advertised on the command line

2016-05-26 Thread Ray Toal
Also, PR sent. On Thursday, May 26, 2016 at 10:19:44 PM UTC-7, Ray Toal wrote: > > Thanks for the pointer to that article...Very helpful! > > On Thursday, May 26, 2016 at 9:49:08 PM UTC-7, Max Goldstein wrote: >> >> Hi Ray, sorry for the trouble, glad you got it sorted o

[elm-discuss] Re: Cannot get elm-community/elm-test to work as advertised on the command line

2016-05-26 Thread Ray Toal
Thanks for the pointer to that article...Very helpful! On Thursday, May 26, 2016 at 9:49:08 PM UTC-7, Max Goldstein wrote: > > Hi Ray, sorry for the trouble, glad you got it sorted out. If you like, > you can send a PR to elm-community/elm-test to update the README. > > There's also this

[elm-discuss] Cannot get elm-community/elm-test to work as advertised on the command line

2016-05-26 Thread Ray Toal
Hello I'm doing lots of updating from 0.16 to 0.17 and since Graphics.Element was moved out of core, I figured it was time to ditch ElementRunner and do some nice command line testing. This is great because I have a ton of files with tests in them and would like to just run them all on the