Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains useful helpers to work with Widget
s
Synopsis
- label :: String -> Widget n -> Widget n
- borderLabel :: String -> Widget n -> Widget n
- borderName :: String -> Widget n
- hArrange :: [Widget n] -> Widget n
- listInBorder :: String -> Int -> Int -> [Text] -> Widget n
Documentation
borderLabel :: String -> Widget n -> Widget n Source #
Like borderWithLabel
but receives String
. Also adds padding and fancy
unicode characters for border label.
Example:
┌─────╼ Some label ╾───┐ │ │ │ │ │ │ │ │ │ │ └──────────────────────┘
borderName :: String -> Widget n Source #
Border label pretty text Widget
hArrange :: [Widget n] -> Widget n Source #
Arranges Widget
s horizontally.
Example:
[x] Cabal [ ] Stack