[Template-haskell] Splicing bindings

Mike Gunter m at ryangunter.com
Mon Jun 13 01:23:40 EDT 2005


Is there a way to splice in a

  nm <- m

binding?  I.e., I'd like something along the lines of
 mdo 
  ...
  $(defNm nm m)
  ...
  ... nm ...
  ...

which would expand to

 mdo
  ...
  nm <- name "nm" m
  ...
  ... nm ...
  ...

.  Is this possible?

	thanks,
	mike


More information about the template-haskell mailing list