String -> ByteString -mtl +base

Warning: Unknown type ByteString

error :: [Char] -> a
base Prelude
error stops execution and displays an error message.
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.
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
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.
fail :: Monad m => String -> m a
base Prelude, base Control.Monad, base Control.Monad.Instances
hPrintf :: HPrintfType r => Handle -> String -> r
base Text.Printf
Similar to printf, except that output is via the specified Handle. The return type is restricted to (IO a).
ReqArg :: (String -> a) -> String -> ArgDescr a
base System.Console.GetOpt
option requires argument
OptArg :: (Maybe String -> a) -> String -> ArgDescr a
base System.Console.GetOpt
optional argument
withProgName :: String -> IO a -> IO a
base System.Environment
withProgName name act - while executing action act, have getProgName return name.
withCWString :: String -> (CWString -> IO a) -> IO a
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C wide string using temporary storage. * the Haskell string may not contain any NUL characters * the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
withCAString :: String -> (CString -> IO a) -> IO a
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C string using temporary storage. * the Haskell string may not contain any NUL characters * the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
withCString :: String -> (CString -> IO a) -> IO a
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C string using temporary storage. * the Haskell string may not contain any NUL characters * the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
withCWStringLen :: String -> (CWStringLen -> IO a) -> IO a
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C wide string using temporary storage. * the Haskell string may not contain any NUL characters * the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
withCAStringLen :: String -> (CStringLen -> IO a) -> IO a
base Foreign.C.String
Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information. * the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
withCStringLen :: String -> (CStringLen -> IO a) -> IO a
base Foreign.C.String
Marshal a Haskell string into a C string (ie, character array) in temporary storage, with explicit length information. * the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this.
throwErrnoPath :: String -> FilePath -> IO a
base Foreign.C.Error
as throwErrno, but exceptions include the given path when appropriate.
readIO :: Read a => String -> IO a
base Prelude, base System.IO
The readIO function is similar to read except that it signals parse failure to the IO monad instead of terminating the program.
genericLength :: Num i => [b] -> i
base Data.List
The genericLength function is an overloaded version of length. In particular, instead of returning an Int, it returns any type which is an instance of Num. It is, however, less efficient than length.

Show more results