Skip to content

Commit 9ac368e

Browse files
committed
Add a void machine
1 parent 111756a commit 9ac368e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Halogen/VDom/Machine.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Halogen.VDom.Machine
88
, loop
99
, stepper
1010
, constantly
11+
, never
1112
) where
1213

1314
import Prelude
@@ -46,3 +47,6 @@ stepper f h a = next <$> f a
4647

4748
constantly m a b. Applicative m b Machine m a b
4849
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

Comments
 (0)