String -> Maybe Int

Label :: String -> Node
HUnit Test.HUnit.Base
maybeRead :: Read a => String -> Maybe a
cgi Network.CGI.Protocol
findIndex :: (a -> Bool) -> [a] -> Maybe Int
base Data.List
The findIndex function takes a predicate and a list and returns the index of the first element in the list satisfying the predicate, or Nothing if there is no such element.
fail :: Monad m => String -> m a
base Prelude, base Control.Monad, base Control.Monad.Instances
ignore :: OnError a b
text Data.Text.Encoding.Error
Ignore an invalid input, substituting nothing in the output.
elemIndex :: Char -> ByteString -> Maybe Int
bytestring Data.ByteString.Char8
O(n) The elemIndex function returns the index of the first element in the given ByteString which is equal (by memchr) to the query element, or Nothing if there is no such element.
elemIndexEnd :: Char -> ByteString -> Maybe Int
bytestring Data.ByteString.Char8
O(n) The elemIndexEnd function returns the last index of the element in the given ByteString which is equal to the query element, or Nothing if there is no such element. The following holds: > elemIndexEnd c xs == > (-) (length xs - 1) `fmap` elemIndex c (reverse xs)
length :: [a] -> Int
base Prelude, base Data.List
O(n). length returns the length of a finite list as an Int. It is an instance of the more general Data.List.genericLength, the result type of which may be any kind of number.
error :: [Char] -> a
base Prelude
error stops execution and displays an error message.
digitToInt :: Char -> Int
base Data.Char
Convert a single digit Char to the corresponding Int. This function fails unless its argument satisfies isHexDigit, but recognises both upper and lower-case hexadecimal digits (i.e. '0'..'9', 'a'..'f', 'A'..'F').
ord :: Char -> Int
base Data.Char
The Prelude.fromEnum method restricted to the type Data.Char.Char.
elemIndex :: Eq a => a -> [a] -> Maybe Int
base Data.List
The elemIndex function returns the index of the first element in the given list which is equal (by ==) to the query element, or Nothing if there is no such element.
Char :: Char -> Key
GLUT Graphics.UI.GLUT.Callbacks.Window
readCookie :: (Read a, MonadCGI m) => String -> m (Maybe a)
cgi Network.CGI
Same as getCookie, but tries to read the value to the desired type.
readInput :: (Read a, MonadCGI m) => String -> m (Maybe a)
cgi Network.CGI
Same as getInput, but tries to read the value to the desired type.
trace :: String -> a -> a
base Debug.Trace
When called, trace outputs the string in its first argument, before returning the second argument as its result. The trace function is not referentially transparent, and should only be used for debugging, or for monitoring execution. Some implementations of trace may decorate the string that's output to indicate that you're tracing. The function is implemented on top of putTraceMsg.
buf_fromStr :: BufferOp a -> String -> a
HTTP Network.BufferType
read :: Read a => String -> a
base Prelude, base Text.Read
The read function reads input from a string, which must be completely consumed by the input process.
fromString :: IsString a => String -> a
base Data.String, base GHC.Exts
strMsg :: Error a => String -> a
transformers Control.Monad.Trans.Error, mtl Control.Monad.Error.Class, mtl Control.Monad.Error

Show more results