Safe Haskell | None |
---|
The TH macro withLocTH
to manually annotate program points,
but you should always use the preprocessor if possible.
Documentation
withLocTH
is a convenient TH macro which expands to withLoc
<source location>
It should only be used when the MonadLoc preprocessor is not available.
Usage:
f x = $withLocTH $ do $withLocTH $ something x < -$withLocTH $ something-else ...
NOTE: unfortunately type signatures are necessary when using withLocTH