Safe Haskell | None |
---|---|
Language | Haskell2010 |
UI.Status.Main
Synopsis
- checkForNewMail :: BChan PurebredEvent -> FilePath -> Text -> Delay -> IO ()
- rescheduleMailcheck :: BChan PurebredEvent -> FilePath -> Text -> Delay -> IO ()
- data StatusbarContext a
- = ListContext a
- | EditorContext a
- | ErrorContext a
- renderError :: Error -> Widget Name
- statusbar :: AppState -> Widget Name
- class WithContext a where
- renderContext :: AppState -> a -> Widget Name
- renderStatusbar :: WithContext w => w -> AppState -> Widget Name
- renderToggled :: AppState -> Widget n
- renderMatches :: AppState -> Widget n
- renderNewMailIndicator :: AppState -> Widget n
- currentItemW :: ListWithLength t e -> Widget n
- lwl :: Foldable t => GenericList Name t e -> ListWithLength t e
Documentation
checkForNewMail :: BChan PurebredEvent -> FilePath -> Text -> Delay -> IO () Source #
rescheduleMailcheck :: BChan PurebredEvent -> FilePath -> Text -> Delay -> IO () Source #
data StatusbarContext a Source #
Constructors
ListContext a | |
EditorContext a | |
ErrorContext a |
Instances
Show a => Show (StatusbarContext a) Source # | |
Defined in UI.Status.Main Methods showsPrec :: Int -> StatusbarContext a -> ShowS show :: StatusbarContext a -> String showList :: [StatusbarContext a] -> ShowS |
renderError :: Error -> Widget Name Source #
class WithContext a where Source #
Methods
renderContext :: AppState -> a -> Widget Name Source #
Instances
WithContext (Editor Text Name) Source # | |
Defined in UI.Status.Main | |
WithContext (ListWithLength t e) Source # | |
Defined in UI.Status.Main Methods renderContext :: AppState -> ListWithLength t e -> Widget Name Source # |
renderStatusbar :: WithContext w => w -> AppState -> Widget Name Source #
renderToggled :: AppState -> Widget n Source #
renderMatches :: AppState -> Widget n Source #
renderNewMailIndicator :: AppState -> Widget n Source #
currentItemW :: ListWithLength t e -> Widget n Source #
lwl :: Foldable t => GenericList Name t e -> ListWithLength t e Source #
Convenience function for promoting a brick list to a ListWithLength
,
using length
on the underlying list.