chiasma-0.2.0.0: tmux api
Safe HaskellNone
LanguageHaskell2010

Chiasma.Ui.Data.View

Documentation

data Pane Source #

Constructors

Pane 

Fields

Instances

Instances details
Eq Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

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

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

Data Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Pane -> c Pane #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Pane #

toConstr :: Pane -> Constr #

dataTypeOf :: Pane -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Pane) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Pane) #

gmapT :: (forall b. Data b => b -> b) -> Pane -> Pane #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Pane -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Pane -> r #

gmapQ :: (forall d. Data d => d -> u) -> Pane -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Pane -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Pane -> m Pane #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Pane -> m Pane #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Pane -> m Pane #

Show Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

showsPrec :: Int -> Pane -> ShowS #

show :: Pane -> String #

showList :: [Pane] -> ShowS #

Generic Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Associated Types

type Rep Pane :: Type -> Type #

Methods

from :: Pane -> Rep Pane x #

to :: Rep Pane x -> Pane #

Default Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

def :: Pane #

Pretty Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: Pane -> Doc ann #

prettyList :: [Pane] -> Doc ann #

HasPane Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Pretty (View Pane) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: View Pane -> Doc ann #

prettyList :: [View Pane] -> Doc ann #

type Rep Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

class HasPane c where Source #

Minimal complete definition

pane

Instances

Instances details
HasPane Pane Source # 
Instance details

Defined in Chiasma.Ui.Data.View

newtype Layout Source #

Constructors

Layout 

Fields

Instances

Instances details
Eq Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

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

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

Data Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Layout -> c Layout #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Layout #

toConstr :: Layout -> Constr #

dataTypeOf :: Layout -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Layout) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Layout) #

gmapT :: (forall b. Data b => b -> b) -> Layout -> Layout #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Layout -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Layout -> r #

gmapQ :: (forall d. Data d => d -> u) -> Layout -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Layout -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Layout -> m Layout #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Layout -> m Layout #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Layout -> m Layout #

Show Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Generic Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Associated Types

type Rep Layout :: Type -> Type #

Methods

from :: Layout -> Rep Layout x #

to :: Rep Layout x -> Layout #

Default Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

def :: Layout #

Pretty Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: Layout -> Doc ann #

prettyList :: [Layout] -> Doc ann #

HasLayout Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Pretty (View Layout) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: View Layout -> Doc ann #

prettyList :: [View Layout] -> Doc ann #

type Rep Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type Rep Layout = D1 ('MetaData "Layout" "Chiasma.Ui.Data.View" "chiasma-0.2.0.0-inplace" 'True) (C1 ('MetaCons "Layout" 'PrefixI 'True) (S1 ('MetaSel ('Just "vertical") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

class HasLayout c where Source #

Minimal complete definition

layout

Instances

Instances details
HasLayout Layout Source # 
Instance details

Defined in Chiasma.Ui.Data.View

data View a Source #

Constructors

View 

Instances

Instances details
Eq a => Eq (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

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

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

Data a => Data (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> View a -> c (View a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (View a) #

toConstr :: View a -> Constr #

dataTypeOf :: View a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (View a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (View a)) #

gmapT :: (forall b. Data b => b -> b) -> View a -> View a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> View a -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> View a -> r #

gmapQ :: (forall d. Data d => d -> u) -> View a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> View a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> View a -> m (View a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> View a -> m (View a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> View a -> m (View a) #

Show a => Show (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

showsPrec :: Int -> View a -> ShowS #

show :: View a -> String #

showList :: [View a] -> ShowS #

Generic (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Associated Types

type Rep (View a) :: Type -> Type #

Methods

from :: View a -> Rep (View a) x #

to :: Rep (View a) x -> View a #

Default a => Default (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

def :: View a #

Pretty (View Pane) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: View Pane -> Doc ann #

prettyList :: [View Pane] -> Doc ann #

Pretty (View Layout) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: View Layout -> Doc ann #

prettyList :: [View Layout] -> Doc ann #

Identifiable (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

identify :: View a -> Ident Source #

HasView (View a) a Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type Rep (View a) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

class HasView c a | c -> a where Source #

Minimal complete definition

view

Instances

Instances details
HasView (View a) a Source # 
Instance details

Defined in Chiasma.Ui.Data.View

data Tree l p Source #

Constructors

Tree 

Fields

Instances

Instances details
Bifunctor Tree Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

bimap :: (a -> b) -> (c -> d) -> Tree a c -> Tree b d #

first :: (a -> b) -> Tree a c -> Tree b c #

second :: (b -> c) -> Tree a b -> Tree a c #

Bifoldable Tree Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

bifold :: Monoid m => Tree m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Tree a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Tree a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Tree a b -> c #

(Eq l, Eq p) => Eq (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

(==) :: Tree l p -> Tree l p -> Bool #

(/=) :: Tree l p -> Tree l p -> Bool #

(Data l, Data p) => Data (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Tree l p -> c (Tree l p) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Tree l p) #

toConstr :: Tree l p -> Constr #

dataTypeOf :: Tree l p -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Tree l p)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Tree l p)) #

gmapT :: (forall b. Data b => b -> b) -> Tree l p -> Tree l p #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tree l p -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tree l p -> r #

gmapQ :: (forall d. Data d => d -> u) -> Tree l p -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Tree l p -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tree l p -> m (Tree l p) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tree l p -> m (Tree l p) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tree l p -> m (Tree l p) #

(Show l, Show p) => Show (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

showsPrec :: Int -> Tree l p -> ShowS #

show :: Tree l p -> String #

showList :: [Tree l p] -> ShowS #

Generic (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Associated Types

type Rep (Tree l p) :: Type -> Type #

Methods

from :: Tree l p -> Rep (Tree l p) x #

to :: Rep (Tree l p) x -> Tree l p #

Identifiable l => Ixed (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

ix :: Index (Tree l p) -> Traversal' (Tree l p) (IxValue (Tree l p)) #

(Data l, Data p) => Plated (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

plate :: Traversal' (Tree l p) (Tree l p) #

(Pretty l, Pretty p) => Pretty (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: Tree l p -> Doc ann #

prettyList :: [Tree l p] -> Doc ann #

Identifiable l => Identifiable (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

identify :: Tree l p -> Ident Source #

HasTree (Tree l p) l p Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

tree :: Lens' (Tree l p) (Tree l p) Source #

_treeData :: Lens' (Tree l p) l Source #

_treeSubs :: Lens' (Tree l p) [TreeSub l p] Source #

type Rep (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type Rep (Tree l p) = D1 ('MetaData "Tree" "Chiasma.Ui.Data.View" "chiasma-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Tree" 'PrefixI 'True) (S1 ('MetaSel ('Just "treeData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 l) :*: S1 ('MetaSel ('Just "treeSubs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TreeSub l p])))
type Index (Tree _1 _2) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type Index (Tree _1 _2) = Ident
type IxValue (Tree l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type IxValue (Tree l p) = Tree l p

data TreeSub l p Source #

Constructors

TreeNode 

Fields

TreeLeaf 

Fields

Instances

Instances details
Bifunctor TreeSub Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

bimap :: (a -> b) -> (c -> d) -> TreeSub a c -> TreeSub b d #

first :: (a -> b) -> TreeSub a c -> TreeSub b c #

second :: (b -> c) -> TreeSub a b -> TreeSub a c #

Bifoldable TreeSub Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

bifold :: Monoid m => TreeSub m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> TreeSub a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> TreeSub a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> TreeSub a b -> c #

(Eq l, Eq p) => Eq (TreeSub l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

(==) :: TreeSub l p -> TreeSub l p -> Bool #

(/=) :: TreeSub l p -> TreeSub l p -> Bool #

(Data l, Data p) => Data (TreeSub l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TreeSub l p -> c (TreeSub l p) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (TreeSub l p) #

toConstr :: TreeSub l p -> Constr #

dataTypeOf :: TreeSub l p -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (TreeSub l p)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (TreeSub l p)) #

gmapT :: (forall b. Data b => b -> b) -> TreeSub l p -> TreeSub l p #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TreeSub l p -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TreeSub l p -> r #

gmapQ :: (forall d. Data d => d -> u) -> TreeSub l p -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TreeSub l p -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TreeSub l p -> m (TreeSub l p) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TreeSub l p -> m (TreeSub l p) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TreeSub l p -> m (TreeSub l p) #

(Show l, Show p) => Show (TreeSub l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

showsPrec :: Int -> TreeSub l p -> ShowS #

show :: TreeSub l p -> String #

showList :: [TreeSub l p] -> ShowS #

Generic (TreeSub l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Associated Types

type Rep (TreeSub l p) :: Type -> Type #

Methods

from :: TreeSub l p -> Rep (TreeSub l p) x #

to :: Rep (TreeSub l p) x -> TreeSub l p #

(Pretty l, Pretty p) => Pretty (TreeSub l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

pretty :: TreeSub l p -> Doc ann #

prettyList :: [TreeSub l p] -> Doc ann #

HasTreeSub (TreeSub l p) l p Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type Rep (TreeSub l p) Source # 
Instance details

Defined in Chiasma.Ui.Data.View

type Rep (TreeSub l p) = D1 ('MetaData "TreeSub" "Chiasma.Ui.Data.View" "chiasma-0.2.0.0-inplace" 'False) (C1 ('MetaCons "TreeNode" 'PrefixI 'True) (S1 ('MetaSel ('Just "_subTree") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Tree l p))) :+: C1 ('MetaCons "TreeLeaf" 'PrefixI 'True) (S1 ('MetaSel ('Just "_leafData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 p)))

class HasTree c l p | c -> l p where Source #

Minimal complete definition

tree

Methods

tree :: Lens' c (Tree l p) Source #

_treeData :: Lens' c l Source #

_treeSubs :: Lens' c [TreeSub l p] Source #

Instances

Instances details
HasTree (Tree l p) l p Source # 
Instance details

Defined in Chiasma.Ui.Data.View

Methods

tree :: Lens' (Tree l p) (Tree l p) Source #

_treeData :: Lens' (Tree l p) l Source #

_treeSubs :: Lens' (Tree l p) [TreeSub l p] Source #

class HasTreeSub c l p | c -> l p where Source #

Minimal complete definition

treeSub

Instances

Instances details
HasTreeSub (TreeSub l p) l p Source # 
Instance details

Defined in Chiasma.Ui.Data.View