Fix handling of family instances in the presense of this doc stuff
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>
Sun, 22 Oct 2006 00:49:04 +0000 (00:49 +0000)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Sun, 22 Oct 2006 00:49:04 +0000 (00:49 +0000)
commitf39ff24bc78da5ba09db8864ecbd7d1055b332db
tree20347a9192a60b9c23731fe2889a759cdd82e622
parent9530e7922d07ac2272e26078c6c626a333d1a761
Fix handling of family instances in the presense of this doc stuff
- Not sure whether I do the right thing, because I don't understand the
  doc stuff.  However, the original code was definitely wrong and
  breaking the renaming of family instance declarations.
- The important point is that in

    data instance T pats = rhs

  T is *not* a defining occurence of T (similarly as C is not a defining
  occurence in "instance C Int").
compiler/parser/RdrHsSyn.lhs
compiler/rename/RnEnv.lhs
compiler/rename/RnSource.lhs