fp-ts-std icon indicating copy to clipboard operation
fp-ts-std copied to clipboard

Char type

Open samhh opened this issue 3 years ago • 1 comments

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).

samhh avatar Aug 10 '21 10:08 samhh

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 :)

waynevanson avatar Aug 17 '21 09:08 waynevanson