ContentsIndex
Darcs.Utils
Synopsis
showHexLen :: Integral a => Int -> a -> String
add_to_error_loc :: Exception -> String -> Exception
isUnsupportedOperationError :: IOError -> Bool
isUnsupportedOperationErrorType :: IOErrorType -> Bool
isHardwareFaultError :: IOError -> Bool
isHardwareFaultErrorType :: IOErrorType -> Bool
catchall :: IO a -> IO a -> IO a
maybeGetEnv :: String -> IO (Maybe String)
firstJustM :: Monad m => [m (Maybe a)] -> m (Maybe a)
firstJustIO :: [IO (Maybe a)] -> IO (Maybe a)
clarify_errors :: IO a -> String -> IO a
prettyException :: Exception -> String
prettyError :: IOError -> String
ortryrunning :: IO ExitCode -> IO ExitCode -> IO ExitCode
putStrLnError :: String -> IO ()
putDocLnError :: Doc -> IO ()
withCurrentDirectory :: FilePathLike p => p -> IO a -> IO a
set_umask :: CString -> IO CInt
reset_umask :: CInt -> IO CInt
withUMask :: String -> IO a -> IO a
askUser :: String -> IO String
stripCr :: String -> String
firstNotBlank :: [String] -> Maybe String
formatPath :: String -> String
breakCommand :: String -> (String, [String])
nubsort :: Ord a => [a] -> [a]
edit_file :: FilePathLike p => p -> IO ExitCode
get_editor :: IO String
get_viewer :: IO String
environmentHelpPager :: ([String], [String])
promptYorn :: [Char] -> IO Char
promptCharFancy :: String -> [Char] -> Maybe Char -> [Char] -> IO Char
Documentation
showHexLen :: Integral a => Int -> a -> String
add_to_error_loc :: Exception -> String -> Exception
isUnsupportedOperationError :: IOError -> Bool
isUnsupportedOperationErrorType :: IOErrorType -> Bool
isHardwareFaultError :: IOError -> Bool
isHardwareFaultErrorType :: IOErrorType -> Bool
catchall :: IO a -> IO a -> IO a
maybeGetEnv :: String -> IO (Maybe String)
firstJustM :: Monad m => [m (Maybe a)] -> m (Maybe a)
The firstJustM returns the first Just entry in a list of monadic operations. This is close to `listToMaybe fmap sequence`, but the sequence operator evaluates all monadic members of the list before passing it along (i.e. sequence is strict). The firstJustM is lazy in that list member monads are only evaluated up to the point where the first Just entry is obtained.
firstJustIO :: [IO (Maybe a)] -> IO (Maybe a)
The firstJustIO is a slight modification to firstJustM: the entries in the list must be IO monad operations and the firstJustIO will silently turn any monad call that throws an exception into Nothing, basically causing it to be ignored.
clarify_errors :: IO a -> String -> IO a
prettyException :: Exception -> String
prettyError :: IOError -> String
ortryrunning :: IO ExitCode -> IO ExitCode -> IO ExitCode
putStrLnError :: String -> IO ()
putDocLnError :: Doc -> IO ()
withCurrentDirectory :: FilePathLike p => p -> IO a -> IO a
set_umask :: CString -> IO CInt
reset_umask :: CInt -> IO CInt
withUMask :: String -> IO a -> IO a
askUser :: String -> IO String
stripCr :: String -> String
firstNotBlank :: [String] -> Maybe String
Returns Just l where l is first non-blank string in input array; Nothing if no non-blank entries
formatPath :: String -> String
breakCommand :: String -> (String, [String])
nubsort :: Ord a => [a] -> [a]
edit_file :: FilePathLike p => p -> IO ExitCode
get_editor :: IO String
get_viewer :: IO String
environmentHelpPager :: ([String], [String])
promptYorn :: [Char] -> IO Char
promptCharFancy :: String -> [Char] -> Maybe Char -> [Char] -> IO Char
Produced by Haddock version 2.4.2