fp-ts-std
fp-ts-std copied to clipboard
Char type
This can't currently be represented at the type-level if we want to support any string character.
It'd probably need to be a newtype. Would it be ergonomic?
A chars :: string -> Array Char
helper would be useful (or string -> Array string
if not).
If users are willing to coerce using functions like we do in FP languages, then it shouldn't be a problem. Personally I'm for it, as long as the coercion functions are available :)