Skip to content

Commit 1ddfe9c

Browse files
authored
toForeign is now unsafeToForeign (#74)
1 parent 16b380c commit 1ddfe9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,12 @@ Use the created interface to push new states and routes. States are always
310310
provide a well-typed interface with any guarantees.
311311

312312
```purescript
313-
import Data.Foreign (toForeign)
313+
import Foreign (unsafeToForeign)
314314
315315
main = do
316316
nav <- makeInterface
317317
...
318-
nav.pushState (toForeign {}) "/about"
318+
nav.pushState (unsafeToForeign {}) "/about"
319319
```
320320

321321
One option is to use `purescript-simple-json` which provides easy codecs to

0 commit comments

Comments
 (0)