From 8d7d35e1ac882ed9a69f34d11aa5483f0a5dd67a Mon Sep 17 00:00:00 2001 From: erikerlandson Date: Tue, 6 Feb 2024 20:44:19 +0000 Subject: [PATCH] deploy: e77a529f2dc668bf2c400a37e67f986f10c83b6e --- coulomb-parser.html | 2 +- coulomb-pureconfig.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/coulomb-parser.html b/coulomb-parser.html index fb8b4a4b8..7a7cadf83 100644 --- a/coulomb-parser.html +++ b/coulomb-parser.html @@ -174,7 +174,7 @@

< "coulomb.units.info" *: EmptyTuple ] -// dslparser: RuntimeUnitParser = repl.MdocSession$MdocApp$$anon$1@35a5145a +// dslparser: RuntimeUnitParser = repl.MdocSession$MdocApp$$anon$1@1db751e3

Parsing can fail, and so the parse method returns an Either object. In the following code, parsing a known unit meter results in a successful Right value.

This example illustrates that unit names parse into a corresponding fully qualified diff --git a/coulomb-pureconfig.html b/coulomb-pureconfig.html index 237c24521..0040d1e76 100644 --- a/coulomb-pureconfig.html +++ b/coulomb-pureconfig.html @@ -221,7 +221,7 @@

< bandwidth: {value: 200, unit: "gigabyte / second"} } """) -// source: ConfigObjectSource = pureconfig.ConfigObjectSource@58f7091f +// source: ConfigObjectSource = pureconfig.ConfigObjectSource@235077d5 // this load will succeed, with automatic unit conversions val conf = source.load[Config] @@ -238,7 +238,7 @@

< bandwidth: {value: 200, unit: "gigabyte"} } """) -// bad: ConfigObjectSource = pureconfig.ConfigObjectSource@47996ce9 +// bad: ConfigObjectSource = pureconfig.ConfigObjectSource@55a8019e // this load will fail because bandwidth units are incompatible val fail = bad.load[Config] @@ -281,7 +281,7 @@

// qsrc: ConfigObjectSource = pureconfig.ConfigObjectSource@2a436077 +// qsrc: ConfigObjectSource = pureconfig.ConfigObjectSource@2f59e055 // loading integer value types will succeed when type matches the config qsrc.load[Quantity[Int, Mega * Byte]] @@ -331,7 +331,7 @@

// source: ConfigObjectSource = pureconfig.ConfigObjectSource@126d5afc +// source: ConfigObjectSource = pureconfig.ConfigObjectSource@2f733f58 // this load will succeed, with automatic unit conversions val conf = source.load[Config]