napkin-cli-2.0.0
Safe HaskellNone
LanguageGHC2024

Napkin.Cli.Web.Navbar

Documentation

newtype Title #

Constructors

Title Text 

data NavBar #

Constructors

NavBar 

Instances

Instances details
Generic NavBar # 
Instance details

Defined in Napkin.Cli.Web.Navbar

Associated Types

type Rep NavBar 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep NavBar = D1 ('MetaData "NavBar" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "NavBar" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: NavBar -> Rep NavBar x #

to :: Rep NavBar x -> NavBar #

HyperView NavBar # 
Instance details

Defined in Napkin.Cli.Web.Navbar

Associated Types

type Action NavBar 
Instance details

Defined in Napkin.Cli.Web.Navbar

ViewId NavBar # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep NavBar # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep NavBar = D1 ('MetaData "NavBar" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "NavBar" 'PrefixI 'False) (U1 :: Type -> Type))
type Action NavBar # 
Instance details

Defined in Napkin.Cli.Web.Navbar

data NavBarAction #

Constructors

PollStatus 

Instances

Instances details
Generic NavBarAction # 
Instance details

Defined in Napkin.Cli.Web.Navbar

Associated Types

type Rep NavBarAction 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep NavBarAction = D1 ('MetaData "NavBarAction" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "PollStatus" 'PrefixI 'False) (U1 :: Type -> Type))
ViewAction NavBarAction # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep NavBarAction # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep NavBarAction = D1 ('MetaData "NavBarAction" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "PollStatus" 'PrefixI 'False) (U1 :: Type -> Type))

data PauseStop #

Constructors

PauseStop 

Instances

Instances details
Generic PauseStop # 
Instance details

Defined in Napkin.Cli.Web.Navbar

Associated Types

type Rep PauseStop 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep PauseStop = D1 ('MetaData "PauseStop" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "PauseStop" 'PrefixI 'False) (U1 :: Type -> Type))
HyperView PauseStop # 
Instance details

Defined in Napkin.Cli.Web.Navbar

Associated Types

type Action PauseStop 
Instance details

Defined in Napkin.Cli.Web.Navbar

ViewId PauseStop # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep PauseStop # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep PauseStop = D1 ('MetaData "PauseStop" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "PauseStop" 'PrefixI 'False) (U1 :: Type -> Type))
type Action PauseStop # 
Instance details

Defined in Napkin.Cli.Web.Navbar

data PauseStopAction #

Constructors

PauseAction 
StopAction 

Instances

Instances details
Generic PauseStopAction # 
Instance details

Defined in Napkin.Cli.Web.Navbar

Associated Types

type Rep PauseStopAction 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep PauseStopAction = D1 ('MetaData "PauseStopAction" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "PauseAction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StopAction" 'PrefixI 'False) (U1 :: Type -> Type))
ViewAction PauseStopAction # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep PauseStopAction # 
Instance details

Defined in Napkin.Cli.Web.Navbar

type Rep PauseStopAction = D1 ('MetaData "PauseStopAction" "Napkin.Cli.Web.Navbar" "napkin-cli-2.0.0-4ha97GXrcwU2qMy5j7dc75" 'False) (C1 ('MetaCons "PauseAction" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "StopAction" 'PrefixI 'False) (U1 :: Type -> Type))

handlePauseButton :: forall b (es :: [Effect]). (Hyperbole :> es, Execution :> es, DAG b :> es) => PauseStop -> PauseStopAction -> Eff es (View PauseStop ()) #

pauseQuitButtons :: forall b (es :: [Effect]). (Hyperbole :> es, Execution :> es, DAG b :> es) => Eff es (View PauseStop ()) #

navbarContent :: forall b f (es :: [Effect]). (Hyperbole :> es, Time :> es, DAG b :> es, Execution :> es, Reader Title :> es, Reader (WebRunMode b) :> es, Reader UTCTime :> es, IOE :> es, Reader Args :> es) => f -> NavBarAction -> Eff es (View NavBar ()) #

getNavbarState :: forall b (es :: [Effect]). (Hyperbole :> es, DAG b :> es) => Eff es NavbarStatus #

data NavbarStatus #

Instances

Instances details
Eq NavbarStatus # 
Instance details

Defined in Napkin.Cli.Web.Navbar