-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | More useful trace functions for investigating bugs -- -- A collection of things for debugging, (to prevent me from writing them -- again) @package debug-tracy @version 0.1.0.3 module Debug.Tracy -- | The trace function outputs the trace message given as its first -- argument, before returning the second argument as its result. -- -- For example, this returns the value of f x but first outputs -- the message. -- --
-- >>> let x = 123; f = show
--
-- >>> trace ("calling f with x = " ++ show x) (f x)
-- "calling f with x = 123
-- 123"
--
--
-- The trace function should only be used for debugging, or
-- for monitoring execution. The function is not referentially
-- transparent: its type indicates that it is a pure function but it has
-- the side effect of outputting the trace message.
trace :: () => String -> a -> a
-- | trace with show and a delimiter built in
tracy :: Show a => String -> a -> a
-- | trace the input and output of a function
proTracy :: (Show a, Show b) => String -> (a -> b) -> a -> b
-- | Spit out a random Keanu Reaves quote when a is evauluated
keanu :: a -> a
-- | spit out a random Arnold Schwarzenegger quote when a is
-- evaluated
arnold :: a -> a
-- | Inspect the size of a collection
hasLength :: Foldable t => String -> t a -> t a
-- | Inspect if t a is null
isFound :: Foldable t => String -> t a -> t a
spy :: Show b => String -> (a -> b) -> a -> a
scope :: String -> f a -> Scope f a
unScope :: Scope f a -> f a
data Scope f a
instance (GHC.Base.Functor f, Data.Foldable.Foldable f) => GHC.Base.Functor (Debug.Tracy.Scope f)
instance (GHC.Base.Applicative f, Data.Foldable.Foldable f) => GHC.Base.Applicative (Debug.Tracy.Scope f)
instance (GHC.Base.Monad m, Data.Foldable.Foldable m) => GHC.Base.Monad (Debug.Tracy.Scope m)