Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class IsReturnValue a where
- stdout :: a -> ByteString
- stderr :: a -> ByteString
- exitCode :: a -> ExitCode
- isSuccessful :: IsReturnValue a => a -> Bool
- isExitSuccess :: ExitCode -> Bool
- strLines :: ByteString -> [String]
- sleep :: Int -> Handsy ()
- mkTemp :: String -> Handsy String
- mkTempDir :: String -> Handsy String
- isRunning :: String -> Handsy Bool
- data OS
- os :: Handsy (Maybe OS)
Helpers for parsing return values of command
and shell
class IsReturnValue a where Source
isSuccessful :: IsReturnValue a => a -> Bool Source
isExitSuccess :: ExitCode -> Bool Source
strLines :: ByteString -> [String] Source
Extract lines from a ByteString. Useful for parsing unix commands.