Created
November 1, 2009 23:41
-
-
Save pepeiborra/223802 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | '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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment