th-traced-0.0.1.0: Tracing Q monad computation

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.TH.Traced

Synopsis

Documentation

data QTrace a Source

Lifted Q monad with logs of addDependentFile, addTopDecls and addModFinalizer. QTrace also snatches getQ and putQ, because these doesn't work till GHC 7.10.2.

data QState Source

Constructors

QState 

Fields

depFiles :: [FilePath]
 
topDecls :: [Dec]
 
finalizers :: [Q ()]
 

tracing :: Q a -> Q (a, QState) Source

Running Q computation with state logging and hooking getQ and putQ.

tracing_ :: Q a -> Q a Source

tracing with internal log discarded.

traced :: Q a -> QTrace a Source

Lift Q computation to QTrace, with logging and snatching.

unsafeLiftQ :: Q a -> QTrace a Source

Lift Q computation to QTrace, WITHOUT logging and snatching.