We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765e1df commit 0903ec7Copy full SHA for 0903ec7
src/Data/Char.purs
@@ -0,0 +1,13 @@
1
+-- | A type and functions for single characters.
2
+module Data.Char
3
+ ( toCharCode
4
+ , fromCharCode
5
+ ) where
6
+
7
+-- | Returns the numeric Unicode value of the character.
8
+toCharCode :: Char -> Int
9
+toCharCode = fromEnum
10
11
+-- | Constructs a character from the given Unicode numeric value.
12
+fromCharCode :: Int -> Maybe Char
13
+fromCharCode = toEnum
0 commit comments