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
read' works on Foreign values, but Foreign objects can be anything -- including being a String as you have defined. Your foreign import definition should actually define a JS object or your foreign import type declaration should be of type String.
Good morning,
I have a record in a
Foreign
object, and when I try to turn it into a Purescript record usingread'
I get the following error:The interesting thing is that it just works if I first convert the
Foreign
object to a string.Why does it behave like this?
Here's a quite large minimum failing example:
Main.js:
Main.purs:
The text was updated successfully, but these errors were encountered: