Found out that Http.post sends it as 'text/plain' mime, not as
'application/json'. Strange, since it expects a JSON response.
Is there a way to force that?
Op zaterdag 2 juli 2016 00:21:58 UTC+2 schreef Dirk Vaneynde:
>
> Hi, I try to post some json via ELM to a java server with jax-rs,
>
Hi, I try to post some json via ELM to a java server with jax-rs, consuming
application/json.
It works fine using curl:
curl -vH "Content-Type: application/json" -X POST -d '{"robotOn": true}'
http://localhost:8080/domo/screenRobotUpdate
But it returns 415 error code when using the following
This is one of the best things that happen to Elm this year for two reasons:
- a beginner can build shiny apps without learning about many moving parts
- an intermediate elmlang user can go through the src code and learn how to
build components with elm-parts
Kudos!
On Monday, June 27, 2016
Hi Peter,
this exchange already helped me to understand some of the nuances of the
Elm architecture better, thank you.
I'm actually implementing a lot in Elm recently, and while I think writing
code is the best way to learn a new technology, it also helps to exchange
with peers from time to
Hi Rex,
I hope I interpret your setup correctly, but it looks like the flow is more
or less:
- user clicks a button inside child
- this triggers child's update function
- child's update function stores updates child model (with a message
Click)
- the parent can then access the
I hope I interpret your setup correctly, but it looks like the flow is more
or less:
- user clicks a button inside child
- this triggers child's update function
- child's update function stores updates child model (with a message
Click)
- the parent can then access the new
Robert,
What you are describing here can be modeled with current technologies and
it relates to the composition that is usually found in The Elm
Architecture.
Take a look a the nesting examples:
https://github.com/evancz/elm-architecture-tutorial/tree/master/nesting
These multiple domains that
Could you do something like this:
Tell the Elm Architecture (as it is right now) that your model is
(modelA, modelB)
where modelA is the type that you want to have as a "stage1" domain, and
modelB is what you want for your "stage2".
And then as Peter Damoc suggested, compose functions to
Hi Robert,
I'm trying to understand what you are requesting and I keep seeing
records/ADT for domains and plain old functions for the transformations.
In other words, I don't really understand what is the show stopper here.
For example, let's say that you want to transform the model into a text
No. You can only do to Msg what you already did to PageMsg and LibMsg (through
tagging *their* message "subtypes").
> Am 01.07.2016 um 11:43 schrieb jonathan de montalembert :
>
> Is there a way to combine two Msg into one? Like (not working)
>
>> type PageMsg
>> =
Hello all,
not having a strong web development background, but rather coming from the
area of domain-specific languages, model-driven development, and IDE
development (i.e. building tools for developers and development platforms),
Elm made me curious because of a lot of the ideas and features
I'm a bit late to the party. I recently given a talk at GDG Paris on how to
integrate Elm and Polymer. All the examples are located
here: https://github.com/kevinlebrun/elm-polymer. I also use a new Elm
feature: "keyed nodes".
I hope it will help anyone interested in combining those two
Is there a way to combine two Msg into one? Like (not working)
type PageMsg
> = HomeMsg Home.Msg
> | ArchiveMsg Archive.Msg
>
> type LibMsg
> = TranslationMsg Translation.Msg
> | PhoenixMsg Phoenix.Msg
>
> type Msg
> = PageMsg
> | LibMsg
then have
update: Msg -> Model ->
13 matches
Mail list logo