Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Heap w a
- type Root = Heap
- pattern Root :: !w -> a -> [Heap w a] -> Heap w a
- popMin :: Monus w => Heap w a -> Maybe ((w, a), Heap w a)
- singleton :: w -> a -> Heap w a
- (<+>) :: Monus w => Heap w a -> Heap w a -> Heap w a
- dijkstra :: Ord a => Graph a -> Graph a
- monusSort :: Ord a => [a] -> [a]
- fromList :: Monus w => [(w, a)] -> Heap w a
Documentation
Instances
Arbitrary2 Heap Source # | |
Defined in Control.Comonad.Heap.Pointed liftArbitrary2 :: Gen a -> Gen b -> Gen (Heap a b) # liftShrink2 :: (a -> [a]) -> (b -> [b]) -> Heap a b -> [Heap a b] # | |
Bitraversable Heap Source # | |
Defined in Control.Comonad.Heap.Pointed bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Heap a b -> f (Heap c d) # | |
Bifoldable Heap Source # | |
Bifunctor Heap Source # | |
Functor (Heap w) Source # | |
Foldable (Heap w) Source # | |
Defined in Control.Comonad.Heap.Pointed fold :: Monoid m => Heap w m -> m # foldMap :: Monoid m => (a -> m) -> Heap w a -> m # foldMap' :: Monoid m => (a -> m) -> Heap w a -> m # foldr :: (a -> b -> b) -> b -> Heap w a -> b # foldr' :: (a -> b -> b) -> b -> Heap w a -> b # foldl :: (b -> a -> b) -> b -> Heap w a -> b # foldl' :: (b -> a -> b) -> b -> Heap w a -> b # foldr1 :: (a -> a -> a) -> Heap w a -> a # foldl1 :: (a -> a -> a) -> Heap w a -> a # elem :: Eq a => a -> Heap w a -> Bool # maximum :: Ord a => Heap w a -> a # minimum :: Ord a => Heap w a -> a # | |
Traversable (Heap w) Source # | |
Arbitrary w => Arbitrary1 (Heap w) Source # | |
Defined in Control.Comonad.Heap.Pointed liftArbitrary :: Gen a -> Gen (Heap w a) # liftShrink :: (a -> [a]) -> Heap w a -> [Heap w a] # | |
Generic1 (Heap w :: Type -> Type) Source # | |
(Eq w, Eq a) => Eq (Heap w a) Source # | |
(Data w, Data a) => Data (Heap w a) Source # | |
Defined in Control.Comonad.Heap.Pointed gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Heap w a -> c (Heap w a) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Heap w a) # toConstr :: Heap w a -> Constr # dataTypeOf :: Heap w a -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Heap w a)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Heap w a)) # gmapT :: (forall b. Data b => b -> b) -> Heap w a -> Heap w a # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Heap w a -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Heap w a -> r # gmapQ :: (forall d. Data d => d -> u) -> Heap w a -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Heap w a -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Heap w a -> m (Heap w a) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Heap w a -> m (Heap w a) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Heap w a -> m (Heap w a) # | |
(Ord w, Ord a) => Ord (Heap w a) Source # | |
Defined in Control.Comonad.Heap.Pointed | |
(Read w, Read a) => Read (Heap w a) Source # | |
(Show w, Show a) => Show (Heap w a) Source # | |
Generic (Heap w a) Source # | |
(Arbitrary w, Arbitrary a) => Arbitrary (Heap w a) Source # | |
(NFData w, NFData a) => NFData (Heap w a) Source # | |
Defined in Control.Comonad.Heap.Pointed | |
type Rep1 (Heap w :: Type -> Type) Source # | |
Defined in Control.Comonad.Heap.Pointed type Rep1 (Heap w :: Type -> Type) = D1 ('MetaData "Heap" "Control.Comonad.Heap.Pointed" "monus-weighted-search-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Leaf" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Node" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec1 (Heap w)))) | |
type Rep (Heap w a) Source # | |
Defined in Control.Comonad.Heap.Pointed type Rep (Heap w a) = D1 ('MetaData "Heap" "Control.Comonad.Heap.Pointed" "monus-weighted-search-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Leaf" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Node" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 (Root w a)))) |