Copyright | (c) Adam Gundry 2015-2016 |
---|---|
License | see libraries/base/LICENSE |
Maintainer | [email protected] |
Stability | internal |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe |
Language | Haskell2010 |
This module defines the HasField
class used by the OverloadedRecordFields
extension. See the <https://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields wiki page> for more details.
class HasField (x :: k) r a | 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/8.6.1/docs/html/libraries/base-4.12.0.0/GHC-Records.html