Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
firstHole :: Carrier z -> Maybe (Element z, z) Source #
plugHole :: Element z -> z -> Carrier z Source #
nextHole :: Element z -> z -> Either (Carrier z) (Element z, z) Source #
Instances
data ListZipper a Source #
ListZip [a] [a] |
Instances
Functor ListZipper Source # | |||||||||
Defined in Agda.Utils.Zipper fmap :: (a -> b) -> ListZipper a -> ListZipper b (<$) :: a -> ListZipper b -> ListZipper a # | |||||||||
Foldable ListZipper Source # | |||||||||
Defined in Agda.Utils.Zipper fold :: Monoid m => ListZipper m -> m foldMap :: Monoid m => (a -> m) -> ListZipper a -> m foldMap' :: Monoid m => (a -> m) -> ListZipper a -> m foldr :: (a -> b -> b) -> b -> ListZipper a -> b foldr' :: (a -> b -> b) -> b -> ListZipper a -> b foldl :: (b -> a -> b) -> b -> ListZipper a -> b foldl' :: (b -> a -> b) -> b -> ListZipper a -> b foldr1 :: (a -> a -> a) -> ListZipper a -> a foldl1 :: (a -> a -> a) -> ListZipper a -> a toList :: ListZipper a -> [a] null :: ListZipper a -> Bool length :: ListZipper a -> Int elem :: Eq a => a -> ListZipper a -> Bool maximum :: Ord a => ListZipper a -> a minimum :: Ord a => ListZipper a -> a sum :: Num a => ListZipper a -> a product :: Num a => ListZipper a -> a | |||||||||
Traversable ListZipper Source # | |||||||||
Defined in Agda.Utils.Zipper traverse :: Applicative f => (a -> f b) -> ListZipper a -> f (ListZipper b) sequenceA :: Applicative f => ListZipper (f a) -> f (ListZipper a) mapM :: Monad m => (a -> m b) -> ListZipper a -> m (ListZipper b) sequence :: Monad m => ListZipper (m a) -> m (ListZipper a) | |||||||||
Zipper (ListZipper a) Source # | |||||||||
Defined in Agda.Utils.Zipper
firstHole :: Carrier (ListZipper a) -> Maybe (Element (ListZipper a), ListZipper a) Source # plugHole :: Element (ListZipper a) -> ListZipper a -> Carrier (ListZipper a) Source # nextHole :: Element (ListZipper a) -> ListZipper a -> Either (Carrier (ListZipper a)) (Element (ListZipper a), ListZipper a) Source # | |||||||||
Show a => Show (ListZipper a) Source # | |||||||||
Defined in Agda.Utils.Zipper showsPrec :: Int -> ListZipper a -> ShowS show :: ListZipper a -> String showList :: [ListZipper a] -> ShowS | |||||||||
Eq a => Eq (ListZipper a) Source # | |||||||||
Defined in Agda.Utils.Zipper (==) :: ListZipper a -> ListZipper a -> Bool (/=) :: ListZipper a -> ListZipper a -> Bool | |||||||||
Ord a => Ord (ListZipper a) Source # | |||||||||
Defined in Agda.Utils.Zipper compare :: ListZipper a -> ListZipper a -> Ordering (<) :: ListZipper a -> ListZipper a -> Bool (<=) :: ListZipper a -> ListZipper a -> Bool (>) :: ListZipper a -> ListZipper a -> Bool (>=) :: ListZipper a -> ListZipper a -> Bool max :: ListZipper a -> ListZipper a -> ListZipper a min :: ListZipper a -> ListZipper a -> ListZipper a | |||||||||
type Carrier (ListZipper a) Source # | |||||||||
Defined in Agda.Utils.Zipper | |||||||||
type Element (ListZipper a) Source # | |||||||||
Defined in Agda.Utils.Zipper |
data ComposeZipper f g Source #
ComposeZip f g |
Instances
(Zipper f, Zipper g, Element f ~ Carrier g) => Zipper (ComposeZipper f g) Source # | |||||||||
Defined in Agda.Utils.Zipper
firstHole :: Carrier (ComposeZipper f g) -> Maybe (Element (ComposeZipper f g), ComposeZipper f g) Source # plugHole :: Element (ComposeZipper f g) -> ComposeZipper f g -> Carrier (ComposeZipper f g) Source # nextHole :: Element (ComposeZipper f g) -> ComposeZipper f g -> Either (Carrier (ComposeZipper f g)) (Element (ComposeZipper f g), ComposeZipper f g) Source # | |||||||||
type Carrier (ComposeZipper f g) Source # | |||||||||
Defined in Agda.Utils.Zipper | |||||||||
type Element (ComposeZipper f g) Source # | |||||||||
Defined in Agda.Utils.Zipper |