Skip to content

Commit 29d7ffb

Browse files
committed
Allow scope and this effects within modify* for #24
1 parent 0cc3df3 commit 29d7ffb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

MODULE.md

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@
806806

807807
id :: forall a. Scope a -> String
808808

809-
modifyScope :: forall e a b. ({ | a } -> Eff e { | b }) -> Scope a -> ReadWriteEff e Unit
809+
modifyScope :: forall e a b. ({ | a } -> ReadWriteEff e { | b }) -> Scope a -> ReadWriteEff e Unit
810810

811811
newScope :: forall e a b. Boolean -> Scope a -> ScopeEff e (Scope b)
812812

@@ -848,7 +848,7 @@
848848

849849
extendThis :: forall e a b. { | b } -> This a -> WriteEff e
850850

851-
modifyThis :: forall e a b. ({ | a } -> Eff e { | b }) -> This a -> ReadWriteEff e Unit
851+
modifyThis :: forall e a b. ({ | a } -> ReadWriteEff e { | b }) -> This a -> ReadWriteEff e Unit
852852

853853
readThis :: forall e a. This a -> ReadEff e a
854854

src/Angular/Scope.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type ReadWriteEff e r = Eff (ngrscope :: NgReadScope, ngwscope :: NgWriteScope |
7979

8080
type ScopeEff e r = Eff (ngscope :: NgScope | e) r
8181

82-
modifyScope :: forall e a b. ({ | a} -> Eff e { | b }) -> Scope a -> ReadWriteEff e Unit
82+
modifyScope :: forall e a b. ({ | a} -> ReadWriteEff e { | b }) -> Scope a -> ReadWriteEff e Unit
8383
modifyScope k s = do
8484
s' <- readScope s
8585
w <- unsafeInterleaveEff $ k s'

src/Angular/This.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ writeThis = runFn3 writeThisFn
3333
extendThis :: forall e a b. { | b } -> This a -> WriteEff e
3434
extendThis = runFn2 extendThisFn
3535

36-
modifyThis :: forall e a b. ({ | a } -> Eff e { | b }) -> This a -> ReadWriteEff e Unit
36+
modifyThis :: forall e a b. ({ | a } -> ReadWriteEff e { | b }) -> This a -> ReadWriteEff e Unit
3737
modifyThis k t = do
3838
t' <- readThis t
3939
w <- unsafeInterleaveEff $ k t'

0 commit comments

Comments
 (0)