RE: mkName and qualified names

"Simon Peyton-Jones" <[email protected]>
Newsgroups gmane.comp.lang.haskell.template
Message-ID <4B93206CA3C55D4F96A61C9B1DC80DE301040EF3@EUR-MSG-03.europe.corp.microsoft.com>
| $(
|     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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.