type annotation of String.isEmpty: "isEmpty : String" => isEmpty : String -> Bool

This commit is contained in:
Tobias Hermann 2013-10-31 14:25:22 +01:00
parent 65509d7991
commit 167298290b

View file

@ -32,7 +32,7 @@ import Native.String
import Maybe (Maybe)
{-| Check if a string is empty `(isEmpty "" == True)` -}
isEmpty : String
isEmpty : String -> Bool
isEmpty = Native.String.isEmpty
{-| Add a character to the beginning of a string -}
@ -308,4 +308,4 @@ something.
fromList ['a','b','c'] == "abc"
-}
fromList : String -> [Char]
fromList = Native.String.fromList
fromList = Native.String.fromList