From 65dd5bab1638371e8ba1752f15ecc4e6dfbbe96d Mon Sep 17 00:00:00 2001 From: milesfrain Date: Thu, 4 Jun 2020 13:55:01 -0600 Subject: [PATCH] toForeign is now unsafeToForeign --- GUIDE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUIDE.md b/GUIDE.md index aa4f1fd..24a3e37 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -310,12 +310,12 @@ Use the created interface to push new states and routes. States are always provide a well-typed interface with any guarantees. ```purescript -import Data.Foreign (toForeign) +import Foreign (unsafeToForeign) main = do nav <- makeInterface ... - nav.pushState (toForeign {}) "/about" + nav.pushState (unsafeToForeign {}) "/about" ``` One option is to use `purescript-simple-json` which provides easy codecs to