On Wednesday, October 5, 2016 at 11:40:24 AM UTC+1, Rupert Smith wrote:
>
> On Wednesday, October 5, 2016 at 11:15:13 AM UTC+1, Wil C wrote:
>>
>> Hi all,
>>
>> Thanks again for all your help. And when I've asked questions last year.
>>
>> I have another question. Here's my situation. I want to pass a json from 
>> a port, and decode the json into records. 
>>
>> The recursive record:
>>
>> type alias Node = {
>>>     name : String
>>>   , children : Children
>>>   }
>>>
>>> type Children =
>>>   Children (List Node)
>>
>>
> I wonder if you will ever get this to work? I tried passing a union type 
> to a port but the compiler complained that the type was not compatible with 
> ports, it would only work with the record type. 
>

Sorry, just ignore. I think you are trying to encode/decode explicitly to a 
string in order to be able to use this data with a port. 

-- 
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