From 0aae8cdf3a27259fe53a1c11979f299f427d57c4 Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Wed, 8 Jan 2025 11:58:19 +1100 Subject: [PATCH] try replaceing URLs --- docs/0.10.2/Json/index.html | 42 +- docs/0.10.2/Option/index.html | 667 ++++++++++++++++++++------ docs/0.10.2/OptionOrNull/index.html | 699 ++++++++++++++++++++++------ docs/0.10.2/index.html | 527 ++++++++++++++++----- docs/0.11.0/Json/index.html | 42 +- docs/0.11.0/Option/index.html | 687 +++++++++++++++++++++------ docs/0.11.0/OptionOrNull/index.html | 699 ++++++++++++++++++++++------ docs/0.11.0/index.html | 547 +++++++++++++++++----- 8 files changed, 3068 insertions(+), 842 deletions(-) diff --git a/docs/0.10.2/Json/index.html b/docs/0.10.2/Json/index.html index 9762978..55b494d 100644 --- a/docs/0.10.2/Json/index.html +++ b/docs/0.10.2/Json/index.html @@ -6,23 +6,23 @@ Json - Documentation - - - - + + + + - - - - + + + + @@ -103,23 +103,23 @@

Documentation

-

Json

JSON is a data format that is easy for humans to read and write. It is +

Json

JSON is a data format that is easy for humans to read and write. It is commonly used to exhange data between two systems such as a server and a client (e.g. web browser).

This module implements functionality to serialise and de-serialise Roc types @@ -146,7 +146,7 @@

Json

JSON is a data format that Ok (Encode.toBytes decodedValue.name Json.utf8) expect name == Ok (Str.toUtf8 "\"Röc Lang\"") -

@@ -154,33 +154,33 @@

Json

JSON is a data format that d="M562.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L405.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C189.5 251.2 196 330 246 380c56.5 56.5 148 56.5 204.5 0L562.8 267.7zM43.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C57 372 57 321 88.5 289.5L200.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C416.5 260.8 410 182 360 132c-56.5-56.5-148-56.5-204.5 0L43.2 244.3z" /> Json

An opaque type with the Encode.EncoderFormatting and DecoderFormatting abilities.

-

utf8

Returns a JSON Encode.Encoder and Decoder

-

-utf8With : +utf8With : { fieldNameMapping ? FieldNameMapping, skipMissingProperties ? Bool, nullDecodeAsEmpty ? Bool, emptyEncodeAsNull ? EncodeAsNull } - -> Json

-encodeAsNullOption : +encodeAsNullOption : { list ? Bool, tuple ? Bool, diff --git a/docs/0.10.2/Option/index.html b/docs/0.10.2/Option/index.html index e2e1fc4..ddcaff3 100644 --- a/docs/0.10.2/Option/index.html +++ b/docs/0.10.2/Option/index.html @@ -1,177 +1,562 @@ - - - - Option - Documentation - - - - - - - + + + + + + - - - - - + + + + + - - -
-
- - - - - - - + ) + + + + - - - -
-

Option

Represents either a value, or nothing -If you need to distinguish between a missing field and a null field you should use OptionOrNull

-

- -Option val

- -none

Missing or null

-

- -some

A value

-

- -get

- -getResult

- -from

use like Option.from Ok val

-

- -fromResult : Result a * ->

Convert a result with any Err to an Option

-
-
-

Made by people who like to make nice things.

-
-
- - + fromResult : Result a * -> +

+

Convert a result with any Err to an Option

+
+
+

Made by people who like to make nice things.

+
+ + diff --git a/docs/0.10.2/OptionOrNull/index.html b/docs/0.10.2/OptionOrNull/index.html index 02adc73..3795ec3 100644 --- a/docs/0.10.2/OptionOrNull/index.html +++ b/docs/0.10.2/OptionOrNull/index.html @@ -1,182 +1,589 @@ - - - - OptionOrNull - Documentation - - - - - - - + + + + + + - - - - - + + + + + - - -
-
- - - - - - - + ) + + + + - - - -
-

OptionOrNull

Represents either a value, a missing field, or a null field -Normally you would only need Option but this type exists for use with APIs that -make a distinction between a json field being null and being missing altogether

-

Ensure you set nullAsUndefined and emptyEncodeAsNull to false in your jsonOptions -eg: core.jsonwithoptions { emptyencodeasnull: bool.false, nullasundefined: bool.false }

-

- -OptionOrNull val

- -none

Missing field

-

- -null

Null

-

- -some

Some value

-

- -get

Get option internals. -For access to convinence methods and error accumulation you may want Option.getResult

-

- -getResult

Option as a result

-

- -from

-
-

Made by people who like to make nice things.

-
-
- - + from + + +
+

Made by people who like to make nice things.

+
+ + diff --git a/docs/0.10.2/index.html b/docs/0.10.2/index.html index 677b81a..934e77d 100644 --- a/docs/0.10.2/index.html +++ b/docs/0.10.2/index.html @@ -1,129 +1,430 @@ - - - - - Documentation - - - - - - - + + + + + + - - - - - + + + + + - - -
-
- - - - - - - + ) + + + + - - -
- - +
+

Made by people who like to make nice things.

+
+ + diff --git a/docs/0.11.0/Json/index.html b/docs/0.11.0/Json/index.html index 9762978..1dd90d1 100644 --- a/docs/0.11.0/Json/index.html +++ b/docs/0.11.0/Json/index.html @@ -6,23 +6,23 @@ Json - Documentation - - - - + + + + - - - - + + + + @@ -103,23 +103,23 @@

Documentation

-

Json

JSON is a data format that is easy for humans to read and write. It is +

Json

JSON is a data format that is easy for humans to read and write. It is commonly used to exhange data between two systems such as a server and a client (e.g. web browser).

This module implements functionality to serialise and de-serialise Roc types @@ -146,7 +146,7 @@

Json

JSON is a data format that Ok (Encode.toBytes decodedValue.name Json.utf8) expect name == Ok (Str.toUtf8 "\"Röc Lang\"") -

@@ -154,33 +154,33 @@

Json

JSON is a data format that d="M562.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L405.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C189.5 251.2 196 330 246 380c56.5 56.5 148 56.5 204.5 0L562.8 267.7zM43.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C57 372 57 321 88.5 289.5L200.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C416.5 260.8 410 182 360 132c-56.5-56.5-148-56.5-204.5 0L43.2 244.3z" /> Json

An opaque type with the Encode.EncoderFormatting and DecoderFormatting abilities.

-

utf8

Returns a JSON Encode.Encoder and Decoder

-

-utf8With : +utf8With : { fieldNameMapping ? FieldNameMapping, skipMissingProperties ? Bool, nullDecodeAsEmpty ? Bool, emptyEncodeAsNull ? EncodeAsNull } - -> Json

-encodeAsNullOption : +encodeAsNullOption : { list ? Bool, tuple ? Bool, diff --git a/docs/0.11.0/Option/index.html b/docs/0.11.0/Option/index.html index e2e1fc4..18eab08 100644 --- a/docs/0.11.0/Option/index.html +++ b/docs/0.11.0/Option/index.html @@ -1,177 +1,582 @@ - - - - Option - Documentation - - - - - - - + + + + + + - - - - - + + + + + - - -
-
- - - - - - - + ) + + + + - - - -
-

Option

Represents either a value, or nothing -If you need to distinguish between a missing field and a null field you should use OptionOrNull

-

- -Option val

- -none

Missing or null

-

- -some

A value

-

- -get

- -getResult

- -from

use like Option.from Ok val

-

- -fromResult : Result a * ->

Convert a result with any Err to an Option

-
-
-

Made by people who like to make nice things.

-
-
- - + fromResult : Result a * -> +

+

Convert a result with any Err to an Option

+
+
+

Made by people who like to make nice things.

+
+ + diff --git a/docs/0.11.0/OptionOrNull/index.html b/docs/0.11.0/OptionOrNull/index.html index 02adc73..f8641d8 100644 --- a/docs/0.11.0/OptionOrNull/index.html +++ b/docs/0.11.0/OptionOrNull/index.html @@ -1,182 +1,589 @@ - - - - OptionOrNull - Documentation - - - - - - - + + + + + + - - - - - + + + + + - - -
-
- - - - - - - + ) + + + + - - - -
-

OptionOrNull

Represents either a value, a missing field, or a null field -Normally you would only need Option but this type exists for use with APIs that -make a distinction between a json field being null and being missing altogether

-

Ensure you set nullAsUndefined and emptyEncodeAsNull to false in your jsonOptions -eg: core.jsonwithoptions { emptyencodeasnull: bool.false, nullasundefined: bool.false }

-

- -OptionOrNull val

- -none

Missing field

-

- -null

Null

-

- -some

Some value

-

- -get

Get option internals. -For access to convinence methods and error accumulation you may want Option.getResult

-

- -getResult

Option as a result

-

- -from

-
-

Made by people who like to make nice things.

-
-
- - + from + + +
+

Made by people who like to make nice things.

+
+ + diff --git a/docs/0.11.0/index.html b/docs/0.11.0/index.html index 677b81a..b89a525 100644 --- a/docs/0.11.0/index.html +++ b/docs/0.11.0/index.html @@ -1,129 +1,450 @@ - - - - - Documentation - - - - - - - + + + + + + - - - - - + + + + + - - -
-
- - - - - - - + ) + + + + - - -
- - + + +