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

Type checker plugin receives Wanteds that are not completely unflattened
With the following, a plugin will receive a wanted constraint that includes a `fsk` flattening skolem. ``` -- "Reduced" via the plugin type family F u v where {} type family G a b where {} data D p where DC :: (p ~ F x (G () ())) => D p ``` (Please ignore the apparent ambiguity regarding `x`; the goal is for the plugin to eliminate any ambiguity.) A do-nothing plugin that merely logs its inputs gives the following for the ambiguity check on DC. ``` given [G] $d~_a4oh {0}:: (p_a4o2[sk:2] :: *) ~ (p_a4o2[sk:2] :: *) (CDictCan) [G] $d~~_a4oi {0}:: (p_a4o2[sk:2] :: *) ~~ (p_a4o2[sk:2] :: *) (CDictCan) [G] co_a4od {0}:: (G () () :: *) ~# (fsk_a4oc[fsk:0] :: *) (CFunEqCan) [G] co_a4of {0}:: (F x_a4o3[sk:2] fsk_a4oc[fsk:0] :: *) ~# (fsk_a4oe[fsk:0] :: *) (CFunEqCan) [G] co_a4og {1}:: (fsk_a4oe[fsk:0] :: *) ~# (p_a4o2[sk:2] :: *) (CTyEqCan) derived wanted [WD] hole{co_a4or} {3}:: (F x_a4o6[tau:2] fsk_a4oc[fsk:0] :: *) ~# (p_a4o2[sk:2] :: *) (CNonCanonical) untouchables [fsk_a4oe[fsk:0], fsk_a4oc[fsk:0], x_a4o3[sk:2], p_a4o2[sk:2]] ``` Note the `fsk_a4oc[fsk:0]` tyvar in the Wanted constraint, which is why I'm opening this ticket. Its presence contradicts the "The wanteds will be unflattened and zonked" claim from https://ghc.haskell.org/trac/ghc/wiki/Plugins/TypeChecker\#Callingpluginsfromthetypechecker section. <details><summary>Trac metadata</summary> | Trac field | Value | | ---------------------- | ----------------------- | | Version | 8.4.1 | | Type | Bug | | TypeOfFailure | OtherFailure | | Priority | normal | | Resolution | Unresolved | | Component | Compiler (Type checker) | | Test case | | | Differential revisions | | | BlockedBy | | | Related | | | Blocking | | | CC | adamgundry | | Operating system | | | Architecture | | </details> <!-- {"blocked_by":[],"summary":"Type checker plugin receives Wanteds that are not completely unflattened","status":"New","operating_system":"","component":"Compiler (Type checker)","related":[],"milestone":"8.6.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.4.1","keywords":["checker","plugins","type"],"differentials":[],"test_case":"","architecture":"","cc":["adamgundry"],"type":"Bug","description":"With the following, a plugin will receive a wanted constraint that includes a `fsk` flattening skolem.\r\n\r\n{{{\r\n-- \"Reduced\" via the plugin\r\ntype family F u v where {}\r\ntype family G a b where {}\r\n\r\ndata D p where\r\n DC :: (p ~ F x (G () ())) => D p\r\n}}}\r\n\r\n(Please ignore the apparent ambiguity regarding `x`; the goal is for the plugin to eliminate any ambiguity.)\r\n\r\nA do-nothing plugin that merely logs its inputs gives the following for the ambiguity check on DC.\r\n\r\n{{{\r\ngiven\r\n [G] $d~_a4oh {0}:: (p_a4o2[sk:2] :: *)\r\n ~ (p_a4o2[sk:2] :: *) (CDictCan)\r\n [G] $d~~_a4oi {0}:: (p_a4o2[sk:2] :: *)\r\n ~~ (p_a4o2[sk:2] :: *) (CDictCan)\r\n [G] co_a4od {0}:: (G () () :: *)\r\n ~# (fsk_a4oc[fsk:0] :: *) (CFunEqCan)\r\n [G] co_a4of {0}:: (F x_a4o3[sk:2] fsk_a4oc[fsk:0] :: *)\r\n ~# (fsk_a4oe[fsk:0] :: *) (CFunEqCan)\r\n [G] co_a4og {1}:: (fsk_a4oe[fsk:0] :: *)\r\n ~# (p_a4o2[sk:2] :: *) (CTyEqCan)\r\nderived\r\nwanted\r\n [WD] hole{co_a4or} {3}:: (F x_a4o6[tau:2] fsk_a4oc[fsk:0] :: *)\r\n ~# (p_a4o2[sk:2] :: *) (CNonCanonical)\r\nuntouchables [fsk_a4oe[fsk:0], fsk_a4oc[fsk:0], x_a4o3[sk:2], p_a4o2[sk:2]]\r\n}}}\r\n\r\nNote the `fsk_a4oc[fsk:0]` tyvar in the Wanted constraint, which is why I'm opening this ticket. Its presence contradicts the \"The wanteds will be unflattened and zonked\" claim from https://ghc.haskell.org/trac/ghc/wiki/Plugins/TypeChecker#Callingpluginsfromthetypechecker section.","type_of_failure":"OtherFailure","blocking":[]} -->
issue