@@ -33,7 +33,7 @@ export class PlanX<E extends HKTS, I, A> {
3333 ( S1 , S2 ) =>
3434 S1 . chain ( s1 =>
3535 S2 . chain ( s2 =>
36- State . pure ( f ( s1 , s2 ) )
36+ State . patch < A > ( ( ) => f ( s1 , s2 ) )
3737 )
3838 )
3939 , machineA . update$ , machineB . update$
@@ -57,7 +57,7 @@ export class PlanX<E extends HKTS, I, A> {
5757 S1 . chain ( s1 =>
5858 S2 . chain ( s2 =>
5959 S3 . chain ( s3 =>
60- State . pure ( f ( s1 , s2 , s3 ) ) ) ) )
60+ State . patch < A > ( ( ) => f ( s1 , s2 , s3 ) ) ) ) )
6161 , machineA . update$ , machineB . update$ , machineC . update$
6262 )
6363 let actions = Object . assign ( { } , machineA . actions , machineB . actions , machineC . actions )
@@ -83,7 +83,7 @@ export class PlanX<E extends HKTS, I, A> {
8383 S2 . chain ( s2 =>
8484 S3 . chain ( s3 =>
8585 S4 . chain ( s4 =>
86- State . pure ( f ( s1 , s2 , s3 , s4 ) ) ) ) ) )
86+ State . patch < A > ( ( ) => f ( s1 , s2 , s3 , s4 ) ) ) ) ) )
8787 , machineA . update$ , machineB . update$ , machineC . update$ , machineD . update$
8888 )
8989 let actions = Object . assign ( { } , machineA . actions , machineB . actions , machineC . actions , machineD . actions )
@@ -112,7 +112,7 @@ export class PlanX<E extends HKTS, I, A> {
112112 S3 . chain ( s3 =>
113113 S4 . chain ( s4 =>
114114 S5 . chain ( s5 =>
115- State . pure ( f ( s1 , s2 , s3 , s4 , s5 ) ) ) ) ) ) )
115+ State . patch < A > ( ( ) => f ( s1 , s2 , s3 , s4 , s5 ) ) ) ) ) ) )
116116 , machineA . update$ , machineB . update$ , machineC . update$ , machineD . update$ , machineE . update$
117117 )
118118 let actions = Object . assign ( { } , machineA . actions , machineB . actions , machineC . actions , machineD . actions , machineE . actions )
@@ -138,7 +138,7 @@ export class PlanX<E extends HKTS, I, A> {
138138 return new PlanX < E , I , A > ( intent$ => {
139139 let machine = this . apply ( intent$ )
140140 let update$ = streamOps . map < StateP < A > , StateP < A > > (
141- state => state . chain ( s => State . pure ( f ( s ) ) ) ,
141+ state => state . chain ( ( ) => State . patch < A > ( f ) ) ,
142142 machine . update$
143143 )
144144 return { update$, actions : machine . actions }
@@ -151,7 +151,7 @@ export class PlanX<E extends HKTS, I, A> {
151151 return new PlanX < E , I , A > ( intent$ => {
152152 let machine = this . apply ( intent$ )
153153 let update$ = streamOps . map < StateP < A > , StateP < A > > (
154- state => state . chain ( s => State . pure ( fb ( s ) ) ) ,
154+ state => state . chain ( ( ) => State . patch < A > ( fb ) ) ,
155155 machine . update$
156156 )
157157 return { update$, actions : fa ( machine . actions ) }
@@ -162,7 +162,7 @@ export class PlanX<E extends HKTS, I, A> {
162162 return intent$ => {
163163 let machine = this . apply ( intent$ )
164164 let update$ = streamOps . map < StateP < A > , Update < A > > (
165- s => s . runA . bind ( s ) ,
165+ s => s . runS . bind ( s ) ,
166166 machine . update$
167167 )
168168 return { update$, actions : machine . actions }
0 commit comments