This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Demonstrates | |
| -- * Dispatching a function Model -> Model rather than a command/message and subsequently pattern matching in the reducer. | |
| -- * Benefits include | |
| -- * Module Oriented Programming. Grouping related operations with the type. Improved transparency. Better organization. | |
| -- * Good ergonomics for composing larger states from smaller througn the use of Lenses. | |
| -- * Slightly more succinct. | |
| -- * Drawbacks | |
| -- * Replay is lost because messages cannot be serialized. | |
| -- * Logic cannot run in a web worker because functions will not serialize across boundary. | |
| -- |