|  binding groups. I was assuming that a non-exported top-level binding
|  defined in one binding group could never be used from outside of that
|  group. When compiling GHC, however, I came across (few) cases where this
|  rule was broken.

The rule is this: 
a binding x=e in a NonRec can be used in a later group but not earlier, nor in e
a binding x=e in a Rec can be used in this group or a later one, but not an 
earlier one

Does that help?

Simon

|  
|  So, what can I expect of top-level binding groups?
|  [ ] bindings cannot be used from another group
|  [ ] only exported bindings can be used from another group
|  [ ] mutual recursion may only occur within one group
|  [ ] none of the above
|  [ ] _____________________________________________________
|  
|  Thanks in advance
|  Jan
|  
|  _______________________________________________
|  Cvs-ghc mailing list
|  [email protected]
|  http://www.haskell.org/mailman/listinfo/cvs-ghc


_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to