hum-0.2.0.0: A TUI MPD client, inspired by ncmpcpp
Copyright(c) Itai Y. Efrat 2020-2021
LicenseGPLv2-or-later (see LICENSE)
MaintainerItai Y. Efrat <itai3397@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Hum.Types

Description

Types!

Synopsis

Documentation

data HumState Source #

Describes the state of the app.

Constructors

HumState 

Fields

data LibraryState Source #

Constructors

LibraryState 

Fields

data PlaylistsState Source #

Stored playlists

Constructors

PlaylistsState 

Fields

data HelpState Source #

Constructors

HelpState 

Fields

data ExSubMode Source #

Specific mode in the bottom prompt

Constructors

Cmd

Function commands

FSearch

Forward search

BSearch

Backwards search

Instances

Instances details
Eq ExSubMode Source # 
Instance details

Defined in Hum.Types

Ord ExSubMode Source # 
Instance details

Defined in Hum.Types

Show ExSubMode Source # 
Instance details

Defined in Hum.Types

data ExState Source #

Constructors

ExState 

Fields

data Prompts Source #

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

Instances details
Eq PromptType Source # 
Instance details

Defined in Hum.Types

Show PromptType Source # 
Instance details

Defined in Hum.Types

data Clipboard Source #

Constructors

Clipboard 

Fields

data Mode Source #

General input mode

Constructors

NormalMode

Vim normal mode style movement

ExMode

Type ex style commands or search

PromptMode

Interact with a prompt

Instances

Instances details
Eq Mode Source # 
Instance details

Defined in Hum.Types

Methods

(==) :: Mode -> Mode -> Bool #

(/=) :: Mode -> Mode -> Bool #

Show Mode Source # 
Instance details

Defined in Hum.Types

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

data Name Source #

Brick widget names

Instances

Instances details
Eq Name Source # 
Instance details

Defined in Hum.Types

Methods

(==) :: Name -> Name -> Bool #

(/=) :: Name -> Name -> Bool #

Ord Name Source # 
Instance details

Defined in Hum.Types

Methods

compare :: Name -> Name -> Ordering #

(<) :: Name -> Name -> Bool #

(<=) :: Name -> Name -> Bool #

(>) :: Name -> Name -> Bool #

(>=) :: Name -> Name -> Bool #

max :: Name -> Name -> Name #

min :: Name -> Name -> Name #

Show Name Source # 
Instance details

Defined in Hum.Types

Methods

showsPrec :: Int -> Name -> ShowS #

show :: Name -> String #

showList :: [Name] -> ShowS #

data Focus Source #

Constructors

Focus 

Instances

Instances details
Eq Focus Source # 
Instance details

Defined in Hum.Types

Methods

(==) :: Focus -> Focus -> Bool #

(/=) :: Focus -> Focus -> Bool #

Ord Focus Source # 
Instance details

Defined in Hum.Types

Methods

compare :: Focus -> Focus -> Ordering #

(<) :: Focus -> Focus -> Bool #

(<=) :: Focus -> Focus -> Bool #

(>) :: Focus -> Focus -> Bool #

(>=) :: Focus -> Focus -> Bool #

max :: Focus -> Focus -> Focus #

min :: Focus -> Focus -> Focus #

Show Focus Source # 
Instance details

Defined in Hum.Types

Methods

showsPrec :: Int -> Focus -> ShowS #

show :: Focus -> String #

showList :: [Focus] -> ShowS #

data FocQueue Source #

Constructors

FocQueue 

Instances

Instances details
Eq FocQueue Source # 
Instance details

Defined in Hum.Types

Ord FocQueue Source # 
Instance details

Defined in Hum.Types

Show FocQueue Source # 
Instance details

Defined in Hum.Types

data FocLib Source #

Constructors

FocArtists 
FocAlbums 
FocSongs 

Instances

Instances details
Enum FocLib Source # 
Instance details

Defined in Hum.Types

Eq FocLib Source # 
Instance details

Defined in Hum.Types

Methods

(==) :: FocLib -> FocLib -> Bool #

(/=) :: FocLib -> FocLib -> Bool #

Ord FocLib Source # 
Instance details

Defined in Hum.Types

Show FocLib Source # 
Instance details

Defined in Hum.Types

data FocPlay Source #

Constructors

FocPlaylists 
FocPSongs 

Instances

Instances details
Enum FocPlay Source # 
Instance details

Defined in Hum.Types

Eq FocPlay Source # 
Instance details

Defined in Hum.Types

Methods

(==) :: FocPlay -> FocPlay -> Bool #

(/=) :: FocPlay -> FocPlay -> Bool #

Ord FocPlay Source # 
Instance details

Defined in Hum.Types

Show FocPlay Source # 
Instance details

Defined in Hum.Types

data View Source #

Instances

Instances details
Eq View Source # 
Instance details

Defined in Hum.Types

Methods

(==) :: View -> View -> Bool #

(/=) :: View -> View -> Bool #

Ord View Source # 
Instance details

Defined in Hum.Types

Methods

compare :: View -> View -> Ordering #

(<) :: View -> View -> Bool #

(<=) :: View -> View -> Bool #

(>) :: View -> View -> Bool #

(>=) :: View -> View -> Bool #

max :: View -> View -> View #

min :: View -> View -> View #

Show View Source # 
Instance details

Defined in Hum.Types

Methods

showsPrec :: Int -> View -> ShowS #

show :: View -> String #

showList :: [View] -> ShowS #

data Tick Source #

Constructors

Tick