git.iko.soy/rowtype-yoga/purescript-yoga-json
on main help sign in
Fix typo (#22)
commit51737ae3e8ba1384785993acd31fb7db61f172dc authorMark Eibes <mark.eibes@gmail.com> dateMon 10 Jul 2023, 18:20 (3 years ago) parentdf6f94a
1 file changed+1−1
README.md+1−1
README.md+1−1
@@ -124,7 +124,7 @@ instance WriteForeign TrafficLight where
124124 writeImpl Yellow = writeImpl "yellow"
125125 writeImpl Green = writeImpl "green"
126126```
127−This works, because `yoga-json` already nows how to serialise a `String`.
127+This works, because `yoga-json` already knows how to serialise a `String`.
128128
129129Similarly, we need to provide an implementation for the `ReadForeign` type class, that tells `yoga-json` how to deserialise the type. We start by deserialising into a primitive type, typically a String or an Object, and then convert it to our desired Purescript type.
130130