Skip to content

Commit bdc0c0d

Browse files
committed
JS args order
1 parent e8ebe39 commit bdc0c0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Data/ArrayBuffer/Typed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ exports.someImpl = function someImpl (a,p) {
7373
};
7474

7575

76-
exports.fillImpl = function fillImpl (a,x,s,e) {
76+
exports.fillImpl = function fillImpl (x, s, e, a) {
7777
return a.fill(x,s,e);
7878
};
7979

src/Data/ArrayBuffer/Typed.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ foreign import newFloat64Array :: forall a. EffectFn3 a (Nullable ByteOffset) (N
7474
foreign import everyImpl :: forall a b. EffectFn2 (ArrayView a) (Fn2 b Offset Boolean) Boolean
7575
foreign import someImpl :: forall a b. EffectFn2 (ArrayView a) (Fn2 b Offset Boolean) Boolean
7676

77-
foreign import fillImpl :: forall a b. EffectFn4 (ArrayView a) b Offset Offset Unit
77+
foreign import fillImpl :: forall a b. EffectFn4 b Offset Offset (ArrayView a) Unit
7878

7979
foreign import mapImpl :: forall a b. EffectFn2 (ArrayView a) (EffectFn2 b Offset b) (ArrayView a)
8080
foreign import forEachImpl :: forall a b. EffectFn2 (ArrayView a) (EffectFn2 b Offset Unit) Unit
@@ -180,7 +180,7 @@ fromArray a = runEffectFn3 create a null null
180180

181181
-- | Fill the array with a value
182182
fill :: forall a t. TypedArray a t => t -> Offset -> Offset -> ArrayView a -> Effect Unit
183-
fill x s e a = runEffectFn4 fillImpl a x s e
183+
fill x s e a = runEffectFn4 fillImpl x s e a
184184

185185
-- | Stores multiple values into the typed array
186186
set :: forall a t. TypedArray a t => ArrayView a -> Maybe Offset -> Array t -> Effect Boolean

0 commit comments

Comments
 (0)