toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

ToyLib.Debug

Description

Debug utilities

Synopsis

Documentation

dbg :: Show a => a -> () #

dbgM :: (Monad m, Show a) => m a -> m () #

dbgS :: String -> () #

dbgSM :: Monad m => m String -> m () #

dbgId :: Show a => a -> a #

note :: (Show s, Show a) => s -> a -> a #

dbgAssert :: Bool -> String -> () #

($$) :: Show a => (a -> b) -> a -> b infixr 0 #

$ with dbgId

(.$) :: Show b => (b -> c) -> (a -> b) -> a -> c infixr 9 #

. with dbgId. TODO: Working?

dbgVec :: (Show (v a), Vector v a, PrimMonad m) => Mutable v (PrimState m) a -> m () #

Shows the mutable vector.