RE: four more CoreSyn questions

2011-03-06 Thread Simon Peyton-Jones
| > The variables bound in a case alternative are the [b] in CoreSyn.Alt. | > These binders include all the type variables, coercion variables, and | > value variables bound in the alternative. | | Are there any rules about the order in which the different types of | variables appear (e.g.,

Re: four more CoreSyn questions

2011-03-06 Thread Adam Megacz
Simon Peyton-Jones writes: > | I assume this is only the > | value variables, and that the type/coercion variables come from > | DataCon.{dataConExTyVars,dcEqSpec}, right? > > Not so at all. Why did you assume that? You're right, that was a silly assumption. However, without it, I

RE: four more CoreSyn questions

2011-03-05 Thread Simon Peyton-Jones
| CoreSyn.AltCon includes a list of Var's -- I assume this is only the | value variables, and that the type/coercion variables come from | DataCon.{dataConExTyVars,dcEqSpec}, right? Not so at all. Why did you assume that? The variables bound in a case alternative are the [b] in Core

four more CoreSyn questions

2011-03-05 Thread Adam Megacz
1. In SystemFC a case branch binds three sorts of variables: type variables (for the existential types of the relevant DataCon), coercion variables (similar), and value variables (for the fields of the DataCon). CoreSyn.AltCon includes a list of Var's -- I assume this is only the valu