text-show-0.6.0.1: Efficient conversion of values into Text

Copyright(C) 2014-2015 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityExperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell98

Text.Show.Text.Debug.Trace.TH

Description

Functions that splice traces into source code which take arbitrary data types or families as arguments (even if they are not instances of Show). You need to enable the TemplateHaskell language extension in order to use this module.

Since: 0.5

Synopsis

Documentation

mkTraceShow :: Name -> Q Exp Source

Generates a lambda expression which outputs the shown trace message of its first argument before returning the second argument.

Since: 0.5

mkTraceShowId :: Name -> Q Exp Source

Generates a lambda expression which outputs the shown trace message of its argument before returning that argument.

Since: 0.5

mkTraceShowM :: Name -> Q Exp Source

Generates a lambda expression which outputs the shown trace message of its argument in an arbitrary monad.

Since: 0.5