Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
Functor Ptr Source # | |
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 # | |
NFData (Ptr a) Source # | |
Defined in Agda.Utils.Pointer | |
Show a => Show (Ptr a) Source # | |
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).