| Copyright | (c) The University of Glasgow CWI 2001--2015 |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Type.Reflection.Unsafe
Description
A concrete representation of a (monomorphic) type.TypeRep supports reasonably efficient equality.
mkTrApp ::forall k1 k2 (a :: k1 -> k2) (b :: k1).TypeRep (a :: k1 -> k2) ->TypeRep (b :: k1) ->TypeRep (a b)Source#
Construct a representation for a type application.
Arguments
| ::String | package name |
| ->String | module name |
| ->String | the name of the type constructor |
| ->Int | number of kind variables |
| ->KindRep | kind representation |
| ->TyCon | A unique |
Exquisitely unsafe.
typeRepFingerprint ::TypeRep a ->FingerprintSource#
Observe theFingerprint of a type representation
Since: 4.8.0.0
The representation produced by GHC for conjuring up the kind of aTypeRep. See Note [Representing TyCon kinds: KindRep] in TcTypeable.
Constructors
| KindRepTyConAppTyCon [KindRep] | |
| KindRepVar !KindBndr | |
| KindRepAppKindRepKindRep | |
| KindRepFunKindRepKindRep | |
| KindRepTYPE !RuntimeRep | |
| KindRepTypeLitSTypeLitSortAddr# | |
| KindRepTypeLitDTypeLitSort [Char] |
Bundled Patterns
| patternKindRepTypeLit ::TypeLitSort ->String ->KindRep |
dataTypeLitSort#
Constructors
| TypeLitSymbol | |
| TypeLitNat |
Produced byHaddock version 2.20.0