We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 111756a commit 9ac368eCopy full SHA for 9ac368e
src/Halogen/VDom/Machine.purs
@@ -8,6 +8,7 @@ module Halogen.VDom.Machine
8
, loop
9
, stepper
10
, constantly
11
+ , never
12
) where
13
14
import Prelude
@@ -46,3 +47,6 @@ stepper f h a = next <$> f a
46
47
48
constantly ∷ ∀ m a b. Applicative m ⇒ b → Machine m a b
49
constantly x _ = pure (Step x (constantly x) (pure unit))
50
+
51
+never ∷ ∀ m b. Applicative m ⇒ Machine m Void b
52
+never a = pure (Step (absurd a) never (pure unit))
0 commit comments