yi-core-0.19.4: Yi editor core library

License | GPL-2
Maintainer | yi-devel@googlegroups.com
Stability | experimental
Portability | portable
Safe Haskell | None
Language | Haskell2010

Extensions

- DeriveFunctor
- DeriveTraversable
- DeriveFoldable

Yi.Syntax.OnlineTree

Description

Module defining the `Tree` used as part of many `Mode`s.

# Documentation

data Tree a Source #

Constructors

Bin (Tree a) (Tree a) |
Leaf a |
Tip |

#### Instances

Instances details

Functor Tree Source # |
Instance details Defined in Yi.Syntax.OnlineTree Methods fmap :: (a -> b) -> Tree a -> Tree b Source # (<$) :: a -> Tree b -> Tree a Source #
Foldable Tree Source # |

Instance details

Defined in Yi.Syntax.OnlineTree

Methods

fold :: Monoid m => Tree m -> m Source #

foldMap :: Monoid m => (a -> m) -> Tree a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Tree a -> m Source #

foldr :: (a -> b -> b) -> b -> Tree a -> b Source #

foldr' :: (a -> b -> b) -> b -> Tree a -> b Source #

foldl :: (b -> a -> b) -> b -> Tree a -> b Source #

foldl' :: (b -> a -> b) -> b -> Tree a -> b Source #

foldr1 :: (a -> a -> a) -> Tree a -> a Source #

foldl1 :: (a -> a -> a) -> Tree a -> a Source #

toList :: Tree a -> [a] Source #

null :: Tree a -> Bool Source #

length :: Tree a -> Int Source #

elem :: Eq a => a -> Tree a -> Bool Source #

maximum :: Ord a => Tree a -> a Source #

minimum :: Ord a => Tree a -> a Source #

sum :: Num a => Tree a -> a Source #

product :: Num a => Tree a -> a Source #

Traversable Tree Source # |
Instance details Defined in Yi.Syntax.OnlineTree Methods traverse :: Applicative f => (a -> f b) -> Tree a -> f (Tree b) Source # sequenceA :: Applicative f => Tree (f a) -> f (Tree a) Source # mapM :: Monad m => (a -> m b) -> Tree a -> m (Tree b) Source # sequence :: Monad m => Tree (m a) -> m (Tree a) Source #
IsTree Tree Source # |
Instance details Defined in Yi.Syntax.OnlineTree Methods subtrees :: Tree t -> [Tree t] Source # uniplate :: Tree t -> ([Tree t], [Tree t] -> Tree t) Source # emptyNode :: Tree t Source #
Show a => Show (Tree a) Source # |
Instance details Defined in Yi.Syntax.OnlineTree Methods showsPrec :: Int -> Tree a -> ShowS Source # show :: Tree a -> String Source # showList :: [Tree a] -> ShowS Source #

manyToks :: P (Tok t) (Tree (Tok t)) Source #

tokAtOrBefore :: Foldable t => Point -> t (Tok t1) -> Maybe (Tok t1) Source #