on master help sign in
Merge pull request #316 from Dobiasd/patch-1

type annotation of String.isEmpty: "isEmpty : String" => isEmpty : Strin...

commita1b1b7473d6ae1379a5d85c5252086f698d7a02d authorEvan Czaplicki <info@elm-lang.org> dateThu 31 Oct 2013, 07:51 (13 years ago) parent0ec03141672982
1 file changed+2−2
libraries/String.elm+2−2
libraries/String.elm+2−2
@@ -32,7 +32,7 @@ import Native.String
3232import Maybe (Maybe)
3333
3434{-| Check if a string is empty `(isEmpty "" == True)` -}
35−isEmpty : String
35+isEmpty : String -> Bool
3636isEmpty = Native.String.isEmpty
3737
3838{-| Add a character to the beginning of a string -}
@@ -308,4 +308,4 @@ something.
308308 fromList ['a','b','c'] == "abc"
309309-}
310310fromList : String -> [Char]
311−fromList = Native.String.fromList
311+fromList = Native.String.fromList