Yes, that would be nice Zinggi

On Wed, Jun 15, 2016, 5:49 AM Zinggi <[email protected]> wrote:

> I think the only thing that could really benefit from a macro system in
> Elm would be a deriving clause similar to Haskell.
> This way we could get Json decoders for free:
>
> type alias Model = { foo: String, bar: Int } deriving Json.Decoder
> Which would generate modelDecoder : Json.Decoder Model
>
> This way we could add more stuff after deriving for different scenarios.
>
>
> On Saturday, 11 June 2016 21:26:55 UTC+2, Isaac Shapira wrote:
>>
>> Continuing the discussion started here:
>>
>> https://github.com/elm-lang/elm-compiler/issues/1413
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elm-discuss/im2up0f59qs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to