-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
type: bugSomething that should function correctly isn't.Something that should function correctly isn't.
Description
fromCharCode
should return Nothing
if the code is out of the Basic Multilingual Plane Char
range, right?
purescript-strings/src/Data/Char.purs
Line 16 in 157e372
fromCharCode = toEnum |
>>> show $ fromCharCode 65900
(Just 'Ŭ')
The Bounded
instance for Char
says that “Characters fall within the Unicode range,” but the Char
says “guaranteed to contain one code unit.”
chtenb
Metadata
Metadata
Assignees
Labels
type: bugSomething that should function correctly isn't.Something that should function correctly isn't.