[Template-haskell] RE: mkName and qualified names
Simon Peyton-Jones
simonpj at microsoft.com
Wed Apr 7 12:05:00 EDT 2004
| $(
| if ghcVersion >= read "6.5"
| then
| let
| foo1 = dyn "foo"
| wombat1 = dyn "wombat"
| in
| [d|
| blah blah blah
| blah $foo1 blah
| blah $wombat1 blah
| |]
Well you could say
| $(
| if ghcVersion >= read "6.5"
| then
| [d|
| blah blah blah
| blah $(dyn "foo") blah
| blah $(dyn "wombat") blah
| |]
which seems better to me. We did also consider %x as shorthand for
$(dyn "x").
I agree about import splices, but I'm less convinced about this one,
since you can always get around it.
Simon
More information about the template-haskell
mailing list