WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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

Lines changed: 1 addition & 1 deletion
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)