Software Development, Fpga Design, Hardware, Programming, IoT.
TurnstileState -> TurnstileInput -> TurnstileState transitionFn Locked Coin = Unlocked transitionFn Unlocked Push = Locked transitionFn state _ = state Same with any other devices, for instance, an OVEN: transitionFn :: OvenState -> InputSignal -> OvenState transitionFn Off BakePressed = Bake