Stream: beginners

Topic: Encoding ability for Dict


view this post on Zulip Kilian Vounckx (Sep 09 2024 at 15:29):

I recently found out when working on the rest-api exercise on exercism that roc's Encoding ability does not work for Dicts.
Is it planned to implement this?

p.s. If someone can help me solve the rest-api exercise without it in the meantime, let me know :sweat_smile:

view this post on Zulip Anton (Sep 09 2024 at 15:32):

Tracking issue: https://github.com/roc-lang/roc/issues/5294
For the exercise @Aurélien Geron worked around this by doing the json encoding manually

view this post on Zulip Kilian Vounckx (Sep 09 2024 at 15:33):

Thanks!

view this post on Zulip Kilian Vounckx (Sep 09 2024 at 15:33):

For now I'll do it manually as well then

view this post on Zulip Anton (Sep 09 2024 at 15:34):

In case you get stuck, here is the full solution.


Last updated: Jul 05 2025 at 12:14 UTC