Skip to content

Commit 250bf8f

Browse files
committed
Fix grammar, remove HasField
1 parent 2afa716 commit 250bf8f

File tree

1 file changed

+1
-2
lines changed
  • message-index/messages/GHC-97044

1 file changed

+1
-2
lines changed

message-index/messages/GHC-97044/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ instance Coercible A B where ...
1313
```
1414
will lead to this error being reported.
1515

16-
The instances for these type classes are automatically created by GHC on as-needed basis.
16+
The instances for these type classes are automatically created by GHC on an as-needed basis.
1717

1818
This restriction applies to the following type classes:
1919

2020
- [Coercible](https://hackage.haskell.org/package/base/docs/Data-Coerce.html#t:Coercible) - This class does not have regular instances; instead they are created on-the-fly during type-checking.
21-
- [HasField](https://hackage.haskell.org/package/base/docs/GHC-Records.html#t:HasField) - This class is used by [OverloadedRecordDot](https://downloads.haskell.org/ghc/latest/docs/users_guide/exts/overloaded_record_dot.html) and related extensions.
2221
- [Typeable](https://hackage.haskell.org/package/base/docs/Type-Reflection.html#t:Typeable) - Since GHC 7.10, all types automatically have `Typeable` instances derived. This is in contrast to previous releases where Typeable had to be explicitly derived using the DeriveDataTypeable language extension.
2322
- Type equality classes `~` and `~~` defined in [Data.Type.Equality](https://hackage.haskell.org/package/base/docs/Data-Type-Equality.html)
2423
- [WithDict](https://hackage.haskell.org/package/base/docs/GHC-Exts.html#t:WithDict) - is used to create dictionaries for classes with a single method. It is used to implement a primitive that we cannot define in Haskell but we can write in Core. Some details can be found in a [Note in GHC library](https://hackage.haskell.org/package/ghc-9.6.1/docs/src/GHC.Tc.Instance.Class.html#line-493)

0 commit comments

Comments
 (0)