This library provides newtypes of Text for use in application code:
NonEmptyText
: a not-empty not-completely-whitespace, length limited newtype over TextNullableNonEmptyText
: a NonEmptyText that may be empty, totally whitespace, or even null while still successfully parsing asNullableNonEmptyText Nothing
. As ofaeson-2.2.0.0
, fields of this type are optional for records using aData.Aeson.Options
withomitNothingFields == True
. If usingaeson <2.2.0.0
, useMaybe NullableNonEmptyText
if you want the field to be optional.Prose
: a whitespace-stripped newtype over Text
This library is not API stable or fully documented yet, however it is used in production code. Breaking changes may be introduced with major version updates.