Re: [elm-discuss] Re: Feature Request: Code Generation/ Macro System

2016-06-16 Thread Max Goldstein
I think Ian makes some great points and Iargely agree with him. I like that Elm is actually less to learn than React, Ember, etc, once you factor in ES2015 and JSX/handlebars and all the other stuff. However, automatically derived JSON decoders are something I could potentially support. They

[elm-discuss] Re: Any open source elm project example for multi-page app?

2016-06-16 Thread Ferdinand Chan
Thanks for the replies. I will check them out later tonight. On Friday, June 17, 2016 at 10:05:21 AM UTC+10, Ferdinand Chan wrote: > > Hi, > > I'm very new to Elm and would like to use it for one of my hobby project, > which is to build a very simple CRM like webapp to keep track of some >

Re: [elm-discuss] Any open source elm project example for multi-page app?

2016-06-16 Thread Ian Mackenzie
You might want to look at the examples from the 'navigation' package (http://package.elm-lang.org/packages/elm-lang/navigation/1.0.0/) and the related url-parser package (http://package.elm-lang.org/packages/evancz/url-parser/1.0.0/). -- You received this message because you are subscribed to

Re: [elm-discuss] Re: Feature Request: Code Generation/ Macro System

2016-06-16 Thread Ian Mackenzie
Just to throw my two cents in, I'd want to be pretty conservative about any macro/code gen system if there is an official one at all. One of the things I love about Elm is that the restrictive nature of the language makes code very easy to follow and understand, and naturally causes libraries

Re: [elm-discuss] Any open source elm project example for multi-page app?

2016-06-16 Thread Nick H
The Elm website and package browser are both built with Elm, although they may be a bit less interactive than what you are looking for. On Thu, Jun 16, 2016 at 5:05 PM, Ferdinand Chan wrote: > Hi, > > I'm very new to Elm

[elm-discuss] Any open source elm project example for multi-page app?

2016-06-16 Thread Ferdinand Chan
Hi, I'm very new to Elm and would like to use it for one of my hobby project, which is to build a very simple CRM like webapp to keep track of some member's information and details, which involves maybe 4-6 pages with forms to input new member data, listing members and searching for members,

[elm-discuss] Combobox recommendation?

2016-06-16 Thread Herwig Habenbacher
Hello Together, I am playing with a Combobox - my actual Implementation is like ... , div [] [ datalist [ id "al", name "al" ] (List.map (\o -> Html.option [ value o.name ] []) appList) , input [ attribute "list" "al", type' "text" ] [] ] ... It works, but doesn't look

Re: [elm-discuss] Wrapping a message in Cmd

2016-06-16 Thread Janis Voigtländer
It’s always a good idea to have a look at the FAQ first. https://elm-community.github.io/elm-faq/17.html#how-do-i-generate-a-new-message-as-a-command ​ 2016-06-16 19:34 GMT+02:00 Luke Williams : > Hi, > > Please let me know if there's already a good way of doing this! :)

[elm-discuss] Wrapping a message in Cmd

2016-06-16 Thread Luke Williams
Hi, Please let me know if there's already a good way of doing this! :) I've been writing Elm for a long time but stepped away for a couple of months and a bunch has changed! Now there are commands instead of signals, Html is parameterised by message type and I'll be honest with you: I'm

Re: [elm-discuss] http request: How to access the whole response

2016-06-16 Thread William Casarin
Hey germain, On Thu, Jun 16, 2016 at 9:52 AM, germain wrote: > > HOWEVER I just get the value field of the response and nothing else > > UnexpectedPayload "Expecting an object with a field named `fakeInt` but > instead got:

Re: [elm-discuss] http request: How to access the whole response

2016-06-16 Thread germain
post' : String -> Http.Body -> Task.Task RawError Http.Responsepost' url body =Http.send Http.defaultSettings{ verb = "POST", headers =[ ("Content-type", "application/json")], url = url, body = body} promoteError : RawError -> ErrorpromoteError rawError = case rawError

Re: [elm-discuss] http request: How to access the whole response

2016-06-16 Thread germain
post' : String -> Http.Body -> Task.Task RawError Http.Responsepost' url body =Http.send Http.defaultSettings{ verb = "POST", headers =[ ("Content-type", "application/json")], url = url, body = body} promoteError : RawError -> ErrorpromoteError rawError = case rawError

[elm-discuss] Re: String Interpolation Proposal

2016-06-16 Thread will . n . white
> > The most common case [availability of interpolation] should not require > extra work; for example, the s in Scala's s"some {{interpolated}} string" is > undesirable. > This is the key point for me. Having

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

2016-06-16 Thread Lambder
I try to get my head around elm-parts. My goal is to have 3 levels of nested components: A -> B -> Counter I base my attempts on https://github.com/debois/elm-parts/tree/master/examples I have added the following function to Counter: render1 : Parts.Get Model c -> Parts.Set Model c ->

[elm-discuss] Re: successfully combine two component parts, but code seems verbose...

2016-06-16 Thread Joaquín Oltra
A few comments: src/pet-store.elm capitalize the name to be consistent with the other files and idiomatic. In this case , instead of having a *OutputMsg(NoOutput)*,

Re: [elm-discuss] Re: Elm-Material Collaboration

2016-06-16 Thread John Orford
+1 On Wed, 15 Jun 2016 at 19:00 Joe Terry wrote: > I am looking forward to working with your > *elm-mdl * > > > It is very well thought out and managed. You are obviously an experienced > and prepared OSS manager. > > > On Friday, April 1,

[elm-discuss] successfully combine two component parts, but code seems verbose...

2016-06-16 Thread 诺铁
hi, previously, I've asked about how to create and combine component parts, also I asked if it's good to inject a A -> Cmd Msg instead of hardcode it in the component itself. thanks for your help, I made a working example, I separate the http example of elm-architecture, make a Search component

Re: [elm-discuss] Re: Elm-Material Collaboration

2016-06-16 Thread debois
Thanks! If you need help, feel free to ask here or on #elm-mdl in the elm slack. If you'd like to contribute, look me up in the elm-slack @debois. There are lots of good starting points here: https://github.com/debois/elm-mdl/issues?utf8=%E2%9C%93=is%3Aissue+is%3Aopen+label%3Astarting-point