We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b380c commit 1ddfe9cCopy full SHA for 1ddfe9c
GUIDE.md
@@ -310,12 +310,12 @@ Use the created interface to push new states and routes. States are always
310
provide a well-typed interface with any guarantees.
311
312
```purescript
313
-import Data.Foreign (toForeign)
+import Foreign (unsafeToForeign)
314
315
main = do
316
nav <- makeInterface
317
...
318
- nav.pushState (toForeign {}) "/about"
+ nav.pushState (unsafeToForeign {}) "/about"
319
```
320
321
One option is to use `purescript-simple-json` which provides easy codecs to
0 commit comments