this is syntactically incorrect, because "Model" is not a type constructor.
the correct syntax would simply be
init: Model
init = { int = 1 }
On Wed, Jun 22, 2016 at 1:05 AM, Peter Damoc <[email protected]> wrote:
> This does not work:
>
> type alias MainModel = { int : Int}
>
> type alias Model = MainModel
>
> init = Model 1
>
> and I'm wondering if this is a bug or the expected behavior.
>
>
>
>
>
>
> --
> There is NO FATE, we are the creators.
> blog: http://damoc.ro/
>
> --
> 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.