We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c04a774 commit ab78019Copy full SHA for ab78019
src/Data/String.purs
@@ -36,7 +36,6 @@ module Data.String
36
import Prelude
37
38
import Data.Maybe (Maybe(..), isJust)
39
-import Data.Monoid (mempty)
40
import Data.String.Unsafe as U
41
42
-- | Returns the character at the given index, if the index is within bounds.
@@ -73,7 +72,7 @@ foreign import _toChar :: (forall a. a -> Maybe a)
73
72
74
-- | Returns `true` if the given string is empty.
75
null :: String -> Boolean
76
-null = eq mempty
+null s = s == ""
77
78
-- | Returns the first character and the rest of the string,
79
-- | if the string is not empty.
0 commit comments