String -> Int

Label :: String -> Node
HUnit Test.HUnit.Base
error :: [Char] -> a
base Prelude
error stops execution and displays an error message.
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.
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.
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
send :: Socket -> String -> IO Int
network Network.Socket
Send data to the socket. The socket must be connected to a remote socket. Returns the number of bytes sent. Applications are responsible for ensuring that all data has been sent.
Char :: Char -> Key
GLUT Graphics.UI.GLUT.Callbacks.Window
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
printf :: PrintfType r => String -> r
base Text.Printf
Format a variable number of arguments with the C-style formatting string. The return value is either String or (IO a). The format string consists of ordinary characters and /conversion specifications/, which specify how to format one of the arguments to printf in the output string. A conversion specification begins with the character %, followed by one or more of the following flags: > - left adjust (default is right adjust) > + always use a sign (+ or -) for signed conversions > 0 pad with zeroes rather than spaces followed optionally by a field width: > num field width > * as num, but taken from argument list followed optionally by a precision: > .num precision (number of decimal places) and finally, a format character: > c character Char, Int, Integer, ... > d decimal Char, Int, Integer, ... > o octal Char, Int, Integer, ... > x hexadecimal Char, Int, Integer, ... > X hexadecimal Char, Int, Integer, ... > u unsigned decimal Char, Int, Integer, ... > f floating point Float, Double > g general format float Float, Double > G general format float Float, Double > e exponent format float Float, Double > E exponent format float Float, Double > s string String Mismatch between the argument types and the format string will cause an exception to be thrown at runtime. Examples: > > printf "%d\n" (23::Int) > 23 > > printf "%s %s\n" "Hello" "World" > Hello World > > printf "%.2f\n" pi > 3.14
throwErrno :: String -> IO a
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno.
badIO :: String -> IO a
template-haskell Language.Haskell.TH.Syntax
throwSocketError :: String -> IO a
network Network.Socket.Internal
Throw an IOError corresponding to the current socket error.
fail :: Monad m => String -> m a
base Prelude, base Control.Monad, base Control.Monad.Instances
count :: Char -> ByteString -> Int
bytestring Data.ByteString.Char8
count returns the number of times its argument appears in the ByteString > count = length . elemIndices Also > count '\n' == length . lines But more efficiently than using length on the intermediate list.
sendTo :: Socket -> String -> SockAddr -> IO Int
network Network.Socket
Send data to the socket. The recipient can be specified explicitly, so the socket need not be in a connected state. Returns the number of bytes sent. Applications are responsible for ensuring that all data has been sent. NOTE: blocking on Windows unless you compile with -threaded (see GHC ticket #1129)
alignment :: Storable a => a -> Int
base Foreign.Storable

Show more results