File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 104
104
105
105
split :: Regex -> String -> [String]
106
106
107
- test :: Regex -> String -> Boolean
107
+ test :: Regex -> String -> Boolean
108
+
109
+
110
+ ## Module Data.String.Unsafe
111
+
112
+ ### Values
113
+
114
+ charAt :: Number -> String -> Char
115
+
116
+ charCodeAt :: Number -> String -> Number
Original file line number Diff line number Diff line change
1
+ module Data.String.Unsafe
2
+ ( charAt
3
+ , charCodeAt
4
+ ) where
5
+
6
+ import Data.Char
7
+
8
+ foreign import charCodeAt
9
+ " " "
10
+ function charCodeAt(i) {
11
+ return function(s) {
12
+ return s.charCodeAt(i);
13
+ };
14
+ }
15
+ " " " :: Number -> String -> Number
16
+
17
+ foreign import charAt
18
+ " " "
19
+ function charAt(i) {
20
+ return function(s) {
21
+ return s.charAt(i);
22
+ };
23
+ }
24
+ " " " :: Number -> String -> Char
You can’t perform that action at this time.
0 commit comments