Odd failure to deduce a constraint
Using a type family to build a compound constraint that includes several constraints produced by applying another type family results in a type checker error like,
```
Could not deduce (ConFun l a, ConFun l b)
arising from a use of ‘bar’
from the context (ConFun l a, ConFun l b)
bound by the type signature for
baz :: (ConFun l a, ConFun l b) => Proxy l -> HList '[a, b] -> ()
```
An example program is given at, https://gist.github.com/acowley/a001bd092599b5914bad
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 7.8.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Odd failure to deduce a constraint","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.8.3","keywords":["ConstraintKinds","TypeFamilies"],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Using a type family to build a compound constraint that includes several constraints produced by applying another type family results in a type checker error like,\r\n\r\n{{{\r\nCould not deduce (ConFun l a, ConFun l b)\r\n arising from a use of ‘bar’\r\n from the context (ConFun l a, ConFun l b)\r\n bound by the type signature for\r\n baz :: (ConFun l a, ConFun l b) => Proxy l -> HList '[a, b] -> ()\r\n}}}\r\n\r\nAn example program is given at, https://gist.github.com/acowley/a001bd092599b5914bad","type_of_failure":"OtherFailure","blocking":[]} -->
issue