File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,11 @@ foreign import fromBoolean :: Boolean -> Json
185
185
-- | Construct `Json` from a `Number` value
186
186
foreign import fromNumber :: Number -> Json
187
187
188
- -- | Construct `Json` from a `String` value. If you would like to parse a string
189
- -- | of JSON into valid `Json`, see `jsonParser`.
188
+ -- | Construct the `Json` representation of a `String` value.
189
+ -- | Note that this function only produces `Json` containing a single piece of `String`
190
+ -- | data (similar to `fromBoolean`, `fromNumber`, etc.).
191
+ -- | This function does NOT convert the `String` encoding of a JSON value to `Json` - For that
192
+ -- | purpose, you'll need to use `jsonParser`.
190
193
foreign import fromString :: String -> Json
191
194
192
195
-- | Construct `Json` from an array of `Json` values
You can’t perform that action at this time.
0 commit comments