And started integrating it into one of my main apps that can benefit most 
from this.  So far I changed my main function from being this:
```elm
main : Program ProgramFlags
main =
    Navigation.programWithFlags urlParser
        { init = init
        , view = view
        , update = update
        , urlUpdate = urlUpdate
        , subscriptions = subscriptions
        }
```
To become this:
```elm
main : Program ProgramFlags
main =
    Navigation.programWithFlags urlParser
        (ProgramEx.programExBuilderWithFlagsAndNavigation
            { init = init
            , filters = filters
            , update = update
            , view = view
            , subscriptions = subscriptions
            , urlUpdate = urlUpdate
            }
        )
```
I also added an `import ProjectEx` and `import ProjectEx as States exposing 
(States)` at the top too.

And I added a filter callback function of:
```elm
filters : Msg -> Model -> ( Msg, States )
filters msg model =
    case msg of
        _ ->
            ( msg, States.default )
```
And it works (by doing nothing different yet)!

I decided to add the model as a read-only into the filter as it ended up 
being quite useful in prior tests.  Now to start converting some of my ton 
of boilerplate into this and see if and by how much if so it reduces 
boilerplate.

This version is not uploaded yet, want to make sure no real bugs or 
anything first, and I figure a real project is a good way to test.

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