Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data ListZipper a Source #
ListZipper [a] a [a] |
Instances
class AsListZipper z a | z -> a where Source #
_ListZipper :: Prism' z (ListZipper a) Source #
Instances
AsListZipper (ListZipper a) a Source # | |
Defined in Data.ListZipper _ListZipper :: Prism' (ListZipper a) (ListZipper a) Source # |
class HasListZipper z a | z -> a where Source #
listZipper :: Lens' z (ListZipper a) Source #
Instances
HasListZipper (ListZipper a) a Source # | |
Defined in Data.ListZipper listZipper :: Lens' (ListZipper a) (ListZipper a) Source # focus :: Lens' (ListZipper a) a Source # leftz :: Lens' (ListZipper a) [a] Source # rightz :: Lens' (ListZipper a) [a] Source # |
leftz' :: HasListZipper z a => Traversal' z a Source #
rightz' :: HasListZipper z a => Traversal' z a Source #
leftzrightz :: Traversal' (ListZipper a) a Source #
rightzleftz :: Traversal' (ListZipper a) a Source #
zipper :: [a] -> Maybe (ListZipper a) Source #
zipper0L :: a -> [a] -> ListZipper a Source #
zipper0L' :: NonEmpty a -> ListZipper a Source #
zipper0R :: [a] -> a -> ListZipper a Source #
zipper0R' :: NonEmpty a -> ListZipper a Source #
list :: ListZipper a -> [a] Source #
zipperIndices :: ListZipper a -> ListZipper (Int, a) Source #
moveStart :: ListZipper a -> ListZipper a Source #
moveEnd :: ListZipper a -> ListZipper a Source #
atStart :: HasListZipper z a => z -> Bool Source #
atEnd :: HasListZipper z a => z -> Bool Source #
moveLeftLoop :: ListZipper a -> ListZipper a Source #
moveRightLoop :: ListZipper a -> ListZipper a Source #
insertMoveLeft :: a -> ListZipper a -> ListZipper a Source #
insertMoveRight :: a -> ListZipper a -> ListZipper a Source #
newtype ListZipperOp x a Source #
ListZipperOp (ListZipper x -> Maybe (ListZipper x, a)) |
Instances
type ListZipperOp' x = ListZipperOp x () Source #
unListZipperOp' :: ListZipperOp' x -> ListZipper x -> Maybe (ListZipper x) Source #
class HasListZipperOp lo x y | lo -> x y where Source #
lo :: Lens' lo (ListZipperOp x y) Source #
Instances
HasListZipperOp (ListZipperOp x y) x y Source # | |
Defined in Data.ListZipper lo :: Lens' (ListZipperOp x y) (ListZipperOp x y) Source # |
class AsListZipperOp t x y | t -> x y where Source #
_ListZipperOp :: Prism' t (ListZipperOp x y) Source #
Instances
AsListZipperOp (ListZipperOp x y) x y Source # | |
Defined in Data.ListZipper _ListZipperOp :: Prism' (ListZipperOp x y) (ListZipperOp x y) Source # |
unpureListZipperOp :: ListZipperOp x a -> ListZipper x -> ListZipper x Source #
mkListZipperOp :: (ListZipper x -> Maybe a) -> ListZipperOp x a Source #
mkListZipperOp' :: (ListZipper x -> Maybe (ListZipper x)) -> ListZipperOp' x Source #
moveLeft :: ListZipperOp' a Source #
moveRight :: ListZipperOp' a Source #
opUntil :: ListZipperOp x () -> (x -> Bool) -> ListZipperOp x () Source #
moveLeftUntil :: (a -> Bool) -> ListZipperOp' a Source #
moveRightUntil :: (a -> Bool) -> ListZipperOp' a Source #
moveLeftRightUntil :: (a -> Bool) -> ListZipperOp' a Source #
moveRightLeftUntil :: (a -> Bool) -> ListZipperOp' a Source #
opWhileJust :: ListZipperOp' a -> ListZipper a -> ListZipper a Source #