incipit-base-0.1.0.2: A Prelude for Polysemy – Base Reexports
Safe HaskellSafe-Inferred
LanguageHaskell2010

Incipit.Debug

Description

Utility functions for trace-printing values prefixed with the current source location.

Synopsis

Documentation

dbg :: HasCallStack => Monad m => Text -> m () Source #

Print a Text in an arbitrary Monad.

dbgs :: HasCallStack => Monad m => Show a => a -> m () Source #

Print a value with a Show instance in an arbitrary Monad.

dbgs_ :: HasCallStack => Monad m => Show a => a -> m a Source #

Print a value with a Show instance in an arbitrary Monad, returning the value.

tr :: HasCallStack => Text -> a -> a Source #

Like trace, but with Text and with source location prefix.

trs :: Show a => HasCallStack => a -> a Source #

Like traceShowId, but with Text and with source location prefix.

trs' :: Show b => HasCallStack => b -> a -> a Source #

Like traceShow, but with Text and with source location prefix.