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
{{ message }}
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
I can't export a function because it's return type is [Double]
Wasm.hs:10:1: error:
• Unacceptable result type in foreign declaration:
‘[Double]’ cannot be marshalled in a foreign call
• When checking declaration:
foreign export javascript "rotatedHemisphere" rotatedHemisphere
:: Int -> Double -> Double -> Double -> [Double]
I don't think I should turn it into JSArray because what I understand is that JSArray is array of JSVal and Double is not JSVal.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I can't export a function because it's return type is
[Double]
I don't think I should turn it into
JSArray
because what I understand is that JSArray is array of JSVal and Double is not JSVal.What should I do?
Beta Was this translation helpful? Give feedback.
All reactions