📄 oneshot.hs
字号:
-- | Rising and falling one-shots.module Language.Atom.Common.OneShot ( oneShotRise , oneShotFall ) whereimport Language.Atom-- | One-shot on a rising transition.oneShotRise :: Name -> Term Bool -> System (Term Bool)oneShotRise name input = scope name $ do last <- bool "last" False rule "updateLast" $ do alwaysActiveWhenEnabled last <== input return $ input &&. inv (value last)-- | One-shot on a falling transition.oneShotFall :: Name -> Term Bool -> System (Term Bool)oneShotFall name input = oneShotRise name $ inv input
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -