| Copyright | (c) Itai Y. Efrat 2020-2021 |
|---|---|
| License | GPLv2-or-later (see LICENSE) |
| Maintainer | Itai Y. Efrat <itai3397@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Hum.Types
Description
Types!
Synopsis
- data HumState = HumState {}
- data LibraryState = LibraryState {}
- data PlaylistsState = PlaylistsState {}
- data HelpState = HelpState {
- helpText :: !Text
- helpSearchInt :: !Int
- data ExSubMode
- data ExState = ExState {
- exPrefix :: !ExSubMode
- exEditor :: !(Editor Text Name)
- searchDirection :: !Bool
- searchHistory :: ![Text]
- cmdHistory :: ![Text]
- data Prompts = Prompts {
- currentPrompt :: !PromptType
- promptTitle :: Text
- plSelectPrompt :: !(List Name (Maybe PlaylistName))
- textPrompt :: !(Editor Text Name)
- exitPromptFunc :: Bool -> HumState -> EventM Name HumState
- data PromptType
- data Clipboard = Clipboard {
- clSongs :: !SongList
- clPlName :: !(Maybe PlaylistName)
- data Mode
- type Highlight = Bool
- type SongList = List Name (Song, Highlight)
- type HumEvent = Either Tick (Response [Subsystem])
- data Name
- data Focus = Focus {}
- data FocQueue = FocQueue
- data FocLib
- data FocPlay
- data View
- data Tick = Tick
- statusL :: Lens' HumState (Maybe Status)
- queueL :: Lens' HumState SongList
- promptsL :: Lens' HumState Prompts
- playlistsL :: Lens' HumState PlaylistsState
- modeL :: Lens' HumState Mode
- libraryL :: Lens' HumState LibraryState
- hviewL :: Lens' HumState View
- helpL :: Lens' HumState HelpState
- focusL :: Lens' HumState Focus
- exL :: Lens' HumState ExState
- editableL :: Lens' HumState Bool
- currentSongL :: Lens' HumState (Maybe Song)
- clipboardL :: Lens' HumState Clipboard
- chanL :: Lens' HumState (BChan HumEvent)
- focQueueL :: Lens' Focus FocQueue
- focPlayL :: Lens' Focus FocPlay
- focLibL :: Lens' Focus FocLib
- focExL :: Lens' Focus Bool
- yalbumsL :: Lens' LibraryState (List Name (Value, Value))
- yalbumSortL :: Lens' LibraryState Bool
- songsL :: Lens' LibraryState (List Name Song)
- artistsL :: Lens' LibraryState (List Name Value)
- plSongsL :: Lens' PlaylistsState SongList
- plListL :: Lens' PlaylistsState (List Name PlaylistName)
- helpTextL :: Lens' HelpState Text
- helpSearchIntL :: Lens' HelpState Int
- searchHistoryL :: Lens' ExState [Text]
- searchDirectionL :: Lens' ExState Bool
- exPrefixL :: Lens' ExState ExSubMode
- exEditorL :: Lens' ExState (Editor Text Name)
- cmdHistoryL :: Lens' ExState [Text]
- textPromptL :: Lens' Prompts (Editor Text Name)
- promptTitleL :: Lens' Prompts Text
- plSelectPromptL :: Lens' Prompts (List Name (Maybe PlaylistName))
- exitPromptFuncL :: Lens' Prompts (Bool -> HumState -> EventM Name HumState)
- currentPromptL :: Lens' Prompts PromptType
- clSongsL :: Lens' Clipboard SongList
- clPlNameL :: Lens' Clipboard (Maybe PlaylistName)
Documentation
Describes the state of the app.
Constructors
| HumState | |
Fields
| |
data LibraryState Source #
Constructors
| HelpState | |
Fields
| |
Specific mode in the bottom prompt
Instances
| Eq ExSubMode Source # | |
| Ord ExSubMode Source # | |
| Show ExSubMode Source # | |
Constructors
| ExState | |
Fields
| |
Constructors
| Prompts | |
Fields
| |
data PromptType Source #
Constructors
| PlSelectPrompt | Select playlist to add songs to |
| YNPrompt | General yes/no prompt |
| TextPrompt | General enter text and do stuff prompt |
Instances
| Eq PromptType Source # | |
Defined in Hum.Types | |
| Show PromptType Source # | |
Defined in Hum.Types Methods showsPrec :: Int -> PromptType -> ShowS # show :: PromptType -> String # showList :: [PromptType] -> ShowS # | |
General input mode
Constructors
| NormalMode | Vim normal mode style movement |
| ExMode | Type ex style commands or search |
| PromptMode | Interact with a prompt |
Brick widget names
Constructors
Constructors
| FocQueue |
Constructors
| FocArtists | |
| FocAlbums | |
| FocSongs |
Constructors
| FocPlaylists | |
| FocPSongs |
Instances
| Enum FocPlay Source # | |
| Eq FocPlay Source # | |
| Ord FocPlay Source # | |
| Show FocPlay Source # | |
Constructors
| QueueView | |
| LibraryView | |
| PlaylistsView | |
| HelpView |
plSelectPromptL :: Lens' Prompts (List Name (Maybe PlaylistName)) Source #