Skip to content

Commit 6843c74

Browse files
authored
Merge pull request #68 from Risto-Stevcev/master
Rewrote null check to use mempty
2 parents c013a7e + ab78019 commit 6843c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/String.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ foreign import _toChar
9999

100100
-- | Returns `true` if the given string is empty.
101101
null :: String -> Boolean
102-
null s = length s == zero
102+
null s = s == ""
103103

104104
-- | Returns the first character and the rest of the string,
105105
-- | if the string is not empty.

0 commit comments

Comments
 (0)