Is it even posible to have such a type in the Elm type system? I dont think
you can call this type recursive, it looks like an infinite type.

On Fri, Dec 30, 2016, 03:29 Marco Perone <[email protected]> wrote:

> I have two types
>
>     type alias Player =
>         { ...
>         , team : Team
>         }
>
>     type alias Team =
>         { ...
>         , players : List Players
>         }
>
> which clearly have a circular dependency. I am duplicating data and I am
> doing that on purpose.
>
> Now the question is: is it possible is some way to have these two types in
> different modules/files? Or must I have them in the same module/file to
> avoid circular dependencies?
>
> --
> 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.
>

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