GHC.Records
| Copyright | (c) Adam Gundry 2015-2016 |
|---|---|
| License | see libraries/base/LICENSE |
| Maintainer | ghc-devs@haskell.org |
| Stability | internal |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Description
This module defines the HasField class used by the OverloadedRecordDot extension. See the wiki page for more details.
Since: base-4.10.0.0
class HasField (x :: k) (r :: TYPE r_rep) (a :: TYPE a_rep) | x r -> a where Source
Constraint representing the fact that the field x belongs to the record type r and has field type a. This will be solved automatically, but manual instances may be provided as well.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.14.1/docs/libraries/base-4.22.0.0-66f8/GHC-Records.html