Safe Haskell | None |
---|---|
Language | Haskell2010 |
- uid :: IO (Maybe String)
- hostname :: IO (Maybe String)
- pwd :: Int -> IO (Maybe String)
- time :: String -> IO String
- date :: String -> IO String
- status :: VCS a => a -> IO (Maybe String, Maybe String, Maybe String)
- branch :: VCS a => a -> IO (Maybe String)
- simpleCmd :: (String -> Maybe String) -> String -> IO (Maybe String)
- argedCmd :: (String -> Maybe String) -> String -> [String] -> IO (Maybe String)
Basic information
name
working directory
time and date
:: String | format (read Data.Time.Format for more detail) |
-> IO String |
return time or date for given format
>>>
time "%H:%M"
13:15
>>>
time "%Y-%b-%d"
2015-Oct-20
version control system
:: VCS a | |
=> a | version control system |
-> IO (Maybe String, Maybe String, Maybe String) | (cleanliness, ahead, behind) |
get current status.
get current name of git-branch