typed-fsm: A framework for strongly typed FSM

[ control, library, mit ] [ Propose Tags ]

FSM stands for Finite State Machine. The typed-fsm is used to define and execute FSM.

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.

Flags

Automatic Flags
NameDescriptionDefault
buildexample

Build examples

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.3.0.1
Change log CHANGELOG.md
Dependencies base (>=4.20.0.0 && <5), containers (>=0.7 && <0.8), dependent-map (>=0.4.0.0 && <0.5), dependent-sum (>=0.7.2.0 && <0.8), linear (>=1.22 && <1.23), microlens (>=0.4.0.0 && <0.5), microlens-mtl (>=0.2.0.3 && <0.3), microlens-th (>=0.4.3.15 && <0.5), mtl (>=2.3.1 && <2.4), sdl2 (>=2.5.5.0 && <2.6), sdl2-ttf (>=2.1.3 && <2.2), singletons-base (>=3.4 && <3.5), stm (>=2.5.3.1 && <2.6), typed-fsm, unordered-containers (>=0.2.20 && <0.3) [details]
License MIT
Author sdzx-1
Maintainer shangdizhixia1993@163.com
Category Control
Source repo head: git clone https://github.com/sdzx-1/typed-fsm
Uploaded by sdzx at 2024-07-18T12:16:17Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables turnstile, atm, motion
Downloads 117 total (14 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]