debug-tracy-0.1.0.2: More useful trace functions for investigating bugs

Safe HaskellNone
LanguageHaskell2010

Debug.Tracy

Synopsis

Documentation

tracy :: Show a => String -> a -> a Source #

trace with show and a delimiter built in

keanu :: a -> a Source #

Spit out a random Keanu Reaves quote when a is evauluated

arnold :: a -> a Source #

spit out a random Arnold Schwarzenegger quote when a is evaluated

hasLength :: Foldable t => String -> t a -> t a Source #

Inspect the size of a collection

isFound :: Foldable t => String -> t a -> t a Source #

Inspect if t a is null

spy :: Show b => String -> (a -> b) -> a -> a Source #

scope :: String -> f a -> Scope f a Source #

unScope :: Scope f a -> f a Source #

data Scope f a Source #

Instances

(Monad m, Foldable m) => Monad (Scope m) Source # 

Methods

(>>=) :: Scope m a -> (a -> Scope m b) -> Scope m b #

(>>) :: Scope m a -> Scope m b -> Scope m b #

return :: a -> Scope m a #

fail :: String -> Scope m a #

(Functor f, Foldable f) => Functor (Scope f) Source # 

Methods

fmap :: (a -> b) -> Scope f a -> Scope f b #

(<$) :: a -> Scope f b -> Scope f a #

(Applicative f, Foldable f) => Applicative (Scope f) Source # 

Methods

pure :: a -> Scope f a #

(<*>) :: Scope f (a -> b) -> Scope f a -> Scope f b #

liftA2 :: (a -> b -> c) -> Scope f a -> Scope f b -> Scope f c #

(*>) :: Scope f a -> Scope f b -> Scope f b #

(<*) :: Scope f a -> Scope f b -> Scope f a #