isCoercibleToString
lib.strings.isCoercibleToString
Docs pulled from | This Revision | 10 minutes ago
Check whether a value val
can be coerced to a string.
Soft-deprecated function. While the original implementation is available as
isConvertibleWithToString
, consider using isStringLike
instead, if suitable.
Inputs
val
- 1. Function argument
Type
isCoercibleToString :: a -> bool
Noogle detected
Implementation
The following is the current implementation of this function.
isCoercibleToString =
lib.warnIf (lib.oldestSupportedReleaseIsAtLeast 2305)
"lib.strings.isCoercibleToString is deprecated in favor of either isStringLike or isConvertibleWithToString. Only use the latter if it needs to return true for null, numbers, booleans and list of similarly coercibles."
isConvertibleWithToString;