You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't match kind ‘AnyK’ with ‘*’
Expected type: ghcjs-base-0.2.0.0:JavaScript.TypedArray.Internal.Types.SomeTypedArray
e 'ghcjs-base-0.2.0.0:GHCJS.Internal.Types.Immutable
Actual type: Uint8Array
In the first argument of ‘XHR.TypedArrayData’, namely ‘u8’
In the ‘XHR.reqData’ field of a record
As far as I can tell, this is the intended purpose of XHR.TypedArrayData, so I'm not sure why it doesn't work.
The text was updated successfully, but these errors were encountered:
Yeah, I ended up slapping an unsafeCoerce on to get around it shortly after commenting on the issue, but there's definitely a bit of an impedance mismatch at the type level that appears to make XHR.TypedArrayData not usable without coercion.
This code:
Produces this error message:
As far as I can tell, this is the intended purpose of
XHR.TypedArrayData
, so I'm not sure why it doesn't work.The text was updated successfully, but these errors were encountered: