| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HWM.Core.Formatting
Synopsis
- data Color
- = Red
- | Green
- | Yellow
- | Gray
- | Magenta
- | Cyan
- | Dim
- | Bold
- | White
- | None
- | RedBackground
- | GreenBackground
- | YellowBackground
- | BrightRed
- | BrightGreen
- | BrightYellow
- chalk :: Color -> Text -> Text
- formatStatus :: [(Text, Status)] -> Text
- data Status
- padDots :: Int -> Text -> Text
- genMaxLen :: [Text] -> Int
- separator :: Int -> Text
- deriveStatus :: [Status] -> Status
- statusFromSeverity :: Maybe Severity -> Status
- statusIcon :: Status -> Text
- isOk :: Status -> Bool
- displayStatus :: [(Text, Status)] -> Text
- class Format a where
- availableOptions :: Format a => [a] -> Text
- renderSummaryStatus :: Status -> Text
- subPathSign :: Text
- slugify :: Text -> Text
- commonPrefix :: [Text] -> (Maybe Text, [Text])
- indentBlockNum :: Int -> Text -> Text
- indentBlock :: Text -> Text -> Text
- formatTable :: [Text] -> [Text]
- formatList :: Format a => Text -> [a] -> Text
- monadStatus :: (Functor m, MonadIssue m) => m b -> m Status
Documentation
deriveStatus :: [Status] -> Status Source #
statusIcon :: Status -> Text Source #
Instances
| Format Value Source # | |
| Format PkgName Source # | |
| Format Bump Source # | |
| Format Version Source # | |
| Format Bound Source # | |
| Format Bounds Source # | |
| Format Dependency Source # | |
Defined in HWM.Domain.Dependencies Methods format :: Dependency -> Text Source # | |
| Format DependencyGraph Source # | |
Defined in HWM.Domain.Dependencies Methods format :: DependencyGraph -> Text Source # | |
| Format BuildEnvironment Source # | |
Defined in HWM.Domain.Matrix Methods format :: BuildEnvironment -> Text Source # | |
| Format Text Source # | |
| Format String Source # | |
| Format Int Source # | |
availableOptions :: Format a => [a] -> Text Source #
renderSummaryStatus :: Status -> Text Source #
subPathSign :: Text Source #
formatTable :: [Text] -> [Text] Source #
monadStatus :: (Functor m, MonadIssue m) => m b -> m Status Source #