I do it, but call it xx.Model.elm

On Sunday, 1 January 2017 00:37:41 UTC+1, Martin DeMello wrote:

I do the same thing in both ocaml and elm code. It's a pretty common 
> pattern.
>
> martin
>
> On Dec 31, 2016 3:29 PM, "Brian Marick" <mar...@exampler.com <javascript:>> 
> wrote:
>
>> 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 elm-discuss...@googlegroups.com <javascript:>.
>> 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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to