typed finite-state machine
Advantages of type-fsm
-
Focus on the right message
-
Top-to-bottom design for easy refactoring
-
Conducive to building complex state machine systems
- Type guarantees will not produce incorrect function calls when written
- With the help of the type system, we can define many state processing functions and then call each other recursively with confidence.
- There is a sanity check. If you miss some items for pattern matching, the compiler will issue a warning, and there will also be a warning for invalid items.
This library requires you to update the ghc version to 9.10.1.
Install ghc 9.10.1 using ghcup
ghcup install ghc 9.10.1
Original design:
confidence-in-types