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

GHC doesn't solve HasField for "naughty" fields, nor lets define own HasField instances
```haskell {-# LANGUAGE GHC2021 #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedRecordDot #-} import GHC.Records -- large-records mangles record definitions to look like below to -- prevent selector function generation (even implicit ones) data R = forall a b. (a ~ Int, b ~ Char) => MkR { field_a :: a , field_b :: b } -- However, fields are there, the following will fail with -- -- • Illegal instance declaration for ‘HasField "field_a" R a’: -- ‘R’ already has a field ‘field_a’. -- -- instance a ~ Int => HasField "field_a" R a where -- getField = undefined -- However that instance is unusable: ex :: () ex = const () r.field_a where r :: R r = MkR 1 'x' -- fails with -- • No instance for ‘HasField "field_a" R b0’ -- arising from selecting the field ‘field_a’ -- -- probably because the field is fancy (there is no selector it would use to generate the instance). -- -- GHC is inconsistent: -- * It doesn't generate selector, nor solve for instance; -- * but it also doesn't let us define instance by hand. ```
issue