You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,28 +43,31 @@ Constructs a character from the given Unicode numeric value.
43
43
instance eqChar :: Eq Char
44
44
```
45
45
46
+
Characters can be compared for equality with `==` and `/=`.
46
47
47
48
#### `ordChar`
48
49
49
50
```purescript
50
51
instance ordChar :: Ord Char
51
52
```
52
53
54
+
Characters can be compared with `compare`, `>`, `>=`, `<` and `<=`.
53
55
54
56
#### `showChar`
55
57
56
58
```purescript
57
59
instance showChar :: Show Char
58
60
```
59
61
62
+
Characters can be rendered as a string with `show`.
60
63
61
64
62
65
## Module Data.String
63
66
64
67
65
68
Wraps the functions of Javascript's `String` object.
66
69
A String represents a sequence of characters.
67
-
For examples and details of the underlying implementation, see [String Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
70
+
For details of the underlying implementation, see [String Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
and [line terminators](http://www.ecma-international.org/ecma-262/5.1/#sec-7.3).
275
279
276
280
#### `joinWith`
277
281
@@ -288,7 +292,7 @@ as separator between them.
288
292
289
293
Wraps Javascript's `RegExp` object that enables matching strings with
290
294
patternes defined by regular expressions.
291
-
For examples and details of the underlying implementation, see [RegExp Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).
295
+
For details of the underlying implementation, see [RegExp Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).
Copy file name to clipboardExpand all lines: src/Data/String.purs
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
-- | Wraps the functions of Javascript's `String` object.
2
2
-- | A String represents a sequence of characters.
3
-
-- | For examples and details of the underlying implementation, see [String Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
3
+
-- | For details of the underlying implementation, see [String Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
4
4
moduleData.String
5
5
(
6
6
charAt,
@@ -77,8 +77,8 @@ module Data.String
77
77
uncons s | null s = Nothing
78
78
uncons s = Just {head : U.charAt 0 s, tail : drop 1 s}
79
79
80
-
-- | Returns the longest prefix (possibly empty) of characters that satisfy the
81
-
-- | predicate:
80
+
-- | Returns the longest prefix (possibly empty) of characters that satisfy
Copy file name to clipboardExpand all lines: src/Data/String/Regex.purs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
-- | Wraps Javascript's `RegExp` object that enables matching strings with
2
2
-- | patternes defined by regular expressions.
3
-
-- | For examples and details of the underlying implementation, see [RegExp Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).
3
+
-- | For details of the underlying implementation, see [RegExp Reference at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).
0 commit comments