From d1d843d43f99f16fa1ab28db4a0595b6bcb94a11 Mon Sep 17 00:00:00 2001 From: Ben Koshy Date: Thu, 19 Dec 2019 08:16:46 +1100 Subject: [PATCH] add further links --- hints/recursive-alias.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hints/recursive-alias.md b/hints/recursive-alias.md index 06fff60f6..59da588b9 100644 --- a/hints/recursive-alias.md +++ b/hints/recursive-alias.md @@ -160,3 +160,8 @@ type SortBy = Time | Score | MostResponses When you try to expand `Comment` you have to expand `Responses` which needs to expand `Comment` which needs to expand `Responses`, etc. So this is just a fancy case of a self-recursive type alias. The solution is the same. Somewhere in that cycle, you need to define an actual `type` to end the infinite expansion. + +### Further Links: + +* [Demystifying Decoders](https://github.com/zwilias/elm-demystify-decoders/blob/master/recursive-help.md) +* [Bad Recursion](https://github.com/elm/compiler/blob/0.18.0/hints/bad-recursion.md)