toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

ToyLib.Debug.STree

Description

Debug utilities

Synopsis

Documentation

dbgSTree :: (Show a, Unbox a, PrimMonad m) => SegmentTree (PrimState m) a -> m () #

Shows the leaves of a strict segment tree.

WARNING: It shows unused leaves, too.

dbgSTreeAll :: (Show a, Unbox a, PrimMonad m) => SegmentTree (PrimState m) a -> m () #

Shows the nodes and the leaves of a strict segment tree,

WARNING: It shows unused nodes and leaves, too.

dbgLSTree :: (Show a, Monoid a, Unbox a, Monoid op, SegmentAction op a, Eq op, Unbox op, PrimMonad m) => LazySegmentTree a op (PrimState m) -> m () #

Shows the leaves of a lazily propagated segment tree.