Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

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