From a6656a839f9334c7b7978a072e83497fac1ecdf9 Mon Sep 17 00:00:00 2001 From: "Daniel P. Brice" Date: Thu, 4 Jan 2024 09:13:15 -0800 Subject: [PATCH] Update src/Data/StringVariants/NullableNonEmptyText.hs --- src/Data/StringVariants/NullableNonEmptyText.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/StringVariants/NullableNonEmptyText.hs b/src/Data/StringVariants/NullableNonEmptyText.hs index 488fb00..f73d5f7 100644 --- a/src/Data/StringVariants/NullableNonEmptyText.hs +++ b/src/Data/StringVariants/NullableNonEmptyText.hs @@ -52,7 +52,7 @@ import Prelude -- -- @'NullableNonEmptyText' n@ is used in API types to represent optional text fields when you do not want an empty string to fail to parse. -- Like 'NonEmptyText', the payload 'Text' is guaranteed to be non-empty, within the character limit, and stripped of whitespace. --- Unlike 'NonEmptyText', it will successfully parse empty strings as 'Nothing'. +-- Unlike 'NonEmptyText', it will successfully parse empty strings as 'nullNonEmptyText'. -- -- Since Aeson version 2.2, fields of this type maybe be missing, @null@, or empty without failing to parse. -- Avoid using @Maybe (NullableNonEmptyText n)@ in API types, since it creates unnecessary edge cases that complicate the code.