Odd interaction between record update and type families
Consider the following example
```hs
{-# LANGUAGE TypeFamilies #-}
type family F a
type family G a
data T1
type instance F T1 = Char
type instance G T1 = Int
data T2
type instance F T2 = Bool
type instance G T2 = Int
data R a = R { x :: F a, y :: G a }
r1 :: R T1
r1 = R { x = 'a', y = 2 }
r2 :: R T2
r2 = r1 { x = True } -- error: Cannot match T1 with T2
r3 :: R T2
r3 = r1 { x = True, y = y r1 } -- OK
```
The error for `r2` is odd because types `R T1` and `R T2` differ only in the type of `x`, so if we start with a value of type `R T1`, and update the field where the types differ, we should end up with a valid value of type `R T2`.
The fact that `r2` is OK is demonstrated by `r3` where we update the other field with its own value, and now the type checker is happy.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ----------------------- |
| Version | 7.10.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (Type checker) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Odd interaction between record update and type families","status":"New","operating_system":"","component":"Compiler (Type checker)","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.10.2","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Consider the following example\r\n{{{#!hs\r\n{-# LANGUAGE TypeFamilies #-}\r\n\r\ntype family F a\r\ntype family G a\r\n\r\ndata T1\r\ntype instance F T1 = Char\r\ntype instance G T1 = Int\r\n\r\ndata T2\r\ntype instance F T2 = Bool\r\ntype instance G T2 = Int\r\n\r\ndata R a = R { x :: F a, y :: G a }\r\n\r\nr1 :: R T1\r\nr1 = R { x = 'a', y = 2 }\r\n\r\nr2 :: R T2\r\nr2 = r1 { x = True } -- error: Cannot match T1 with T2\r\n\r\nr3 :: R T2\r\nr3 = r1 { x = True, y = y r1 } -- OK\r\n}}}\r\n\r\nThe error for `r2` is odd because types `R T1` and `R T2` differ only in the type of `x`, so if we start with a value of type `R T1`, and update the field where the types differ, we should end up with a valid value of type `R T2`.\r\n\r\nThe fact that `r2` is OK is demonstrated by `r3` where we update the other field with its own value, and now the type checker is happy.\r\n","type_of_failure":"OtherFailure","blocking":[]} -->
issue