Wed Feb 10 01:39:10 PST 2010 [email protected]
* Several TH/quasiquote changes
a) Added quasi-quote forms for
declarations
types
e.g. f :: [$qq| ... |]
b) Allow Template Haskell pattern quotes (but not splices)
e.g. f x = [p| Int -> $x |]
c) Improve pretty-printing for HsPat to remove superfluous
parens. (This isn't TH related really, but it affects
some of the same code.)
A consequence of (a) is that when gathering and grouping declarations
in RnSource.findSplice, we must expand quasiquotes as we do so.
Otherwise it's all fairly straightforward. I did a little bit of
refactoring in TcSplice.
User-manual changes still to come.
M ./compiler/deSugar/DsMeta.hs -32 +45
M ./compiler/hsSyn/HsDecls.lhs +2
M ./compiler/hsSyn/HsExpr.lhs -17 +27
M ./compiler/hsSyn/HsPat.lhs -38 +33
M ./compiler/hsSyn/HsPat.lhs-boot -4 +1
M ./compiler/hsSyn/HsTypes.lhs +25
M ./compiler/hsSyn/HsUtils.lhs -1 +1
M ./compiler/parser/Parser.y.pp -7 +11
M ./compiler/parser/RdrHsSyn.lhs -87 +10
M ./compiler/rename/RnExpr.lhs -12 +21
M ./compiler/rename/RnHsSyn.lhs +1
M ./compiler/rename/RnPat.lhs -27 +8
M ./compiler/rename/RnSource.lhs -1 +83
M ./compiler/rename/RnTypes.lhs +9
M ./compiler/typecheck/TcHsType.lhs -2 +4
M ./compiler/typecheck/TcRnDriver.lhs -3 +2
M ./compiler/typecheck/TcSplice.lhs -31 +57
M ./compiler/typecheck/TcSplice.lhs-boot -3 +5
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20100210093910-1287e-cca518fcec2e326803782a967b7fe09ab3cb7efa.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc