Open Quelklef opened 2 years ago
If you think this would be an appropriate change, I can implement it; more opportunity to get comfy with the elmish codebase
Conclusion reached: make init :: Update msg model
-- flags are unnecessary, but it's nice to do all those Effect
s within an initialization function
Also if you really need a flags-like api, you can wrap main
and make it yourself
Currently,
I assume this is inherited from Elm.
Because Purescript has
main :: Effect a
instead ofmain :: Program a b c
like Elm, we actually don't needflags
: instead of writingWe can write
As such, it seems appropriate to me to change
init :: flags -> Update msg model
toinit :: Update msg model
or even justinit :: model
.