To avoid circular dependencies, I find myself putting type declarations in one 
file:

> module Animals.Pages.Declare exposing (..)
> 
> type PageChoice 
>   = AllPage
>   | AddPage
>   | HelpPage

… and related code in another:

> module Animals.Pages.Define exposing
> ...
> toPageChangeCmd : PageChoice -> Cmd Msg
> toPageChangeCmd page =
>   let
>    ...
>   in
>     Navigation.newUrl url


Is that typical, or am I missing something?


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