[Haskell-cafe] does the order of splice definitions matter in template haskell, or is this a bug?

Thomas Hartman thomas.hartman at db.com
Wed Oct 31 15:27:20 EDT 2007

I have a situation where

... stuff...

$(expose ['setState, 'getState]
f = SetState

compiles but

f = SetState
$(expose ['setState, 'getState]

doesn't compile, with error: Not in scope: data constructor 'SetState.

Is this a bug?

expose is defined in HAppS.State.EventTH



This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071031/b39bd4a9/attachment.htm

More information about the Haskell-Cafe mailing list