Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
Foldable Ptr Source # | |
Defined in Agda.Utils.Pointer fold :: Monoid m => Ptr m -> m foldMap :: Monoid m => (a -> m) -> Ptr a -> m foldMap' :: Monoid m => (a -> m) -> Ptr a -> m foldr :: (a -> b -> b) -> b -> Ptr a -> b foldr' :: (a -> b -> b) -> b -> Ptr a -> b foldl :: (b -> a -> b) -> b -> Ptr a -> b foldl' :: (b -> a -> b) -> b -> Ptr a -> b foldr1 :: (a -> a -> a) -> Ptr a -> a foldl1 :: (a -> a -> a) -> Ptr a -> a elem :: Eq a => a -> Ptr a -> Bool maximum :: Ord a => Ptr a -> a | |
Traversable Ptr Source # | |
Functor Ptr Source # | |
Show a => Show (Ptr a) Source # | |
NFData (Ptr a) Source # | |
Defined in Agda.Utils.Pointer | |
Eq (Ptr a) Source # | |
Ord (Ptr a) Source # | |
Hashable (Ptr a) Source # | |
Defined in Agda.Utils.Pointer hashWithSalt :: Int -> Ptr a -> Int |
updatePtrM :: Functor f => (a -> f a) -> Ptr a -> f (Ptr a) Source #
If f a
contains many copies of a
they will all be the same pointer in
the result. If the function is well-behaved (i.e. preserves the implicit
equivalence, this shouldn't matter).