on master help sign in
Add some other API suggestions.
d178521evancz
core-elm/Automaton.elm+4−1
@@ -14,13 +14,16 @@ compose :: Automaton a b -> Automaton b c -> Automaton a c
14combine :: [Automaton a b] -> Automaton a [b]
14combine :: [Automaton a b] -> Automaton a [b]
15combine :: Container c => c (Automaton a b) -> Automaton a (c b)
15combine :: Container c => c (Automaton a b) -> Automaton a (c b)
16
16
17−init :: b -> (a -> b -> b) -> Automaton a b
18
17
18+pure :: (a -> b) -> Automaton a b
19+init :: b -> (a -> b -> b) -> Automaton a b
19init' :: s -> (a -> s -> (b,s)) -> Automaton a b
20init' :: s -> (a -> s -> (b,s)) -> Automaton a b
20
21
21count :: Automaton a Int
22count :: Automaton a Int
22
23
23draggable :: Form -> Automaton (Bool,(Int,Int)) Form
24draggable :: Form -> Automaton (Bool,(Int,Int)) Form
25+foo :: (a -> b) -> Automaton b c -> Automaton a c
26+bar :: Automaton a b -> (b -> c) -> Automaton a c
24
27
25--}
28--}
26
29