Movatterモバイル変換


[0]ホーム

URL:


base-4.12.0.0: Basic libraries

Copyright(c) The University of Glasgow CWI 2001--2015
LicenseBSD-style (see the file libraries/base/LICENSE)
Safe HaskellSafe
LanguageHaskell2010

Type.Reflection.Unsafe

Contents

Description

The representations of the typesTyCon andTypeRep, and the functionmkTyCon which is used by derived instances ofTypeable to constructTyCons.

Be warned, these functions can be used to construct ill-kinded type representations.

Synopsis

Type representations

dataTypeRep (a :: k)Source#

A concrete representation of a (monomorphic) type.TypeRep supports reasonably efficient equality.

Instances
TestEquality (TypeRep :: k ->Type)Source# 
Instance details

Defined inData.Typeable.Internal

Eq (TypeRep a)Source#

Since: 2.1

Instance details

Defined inData.Typeable.Internal

Methods

(==) ::TypeRep a ->TypeRep a ->Bool#

(/=) ::TypeRep a ->TypeRep a ->Bool#

Ord (TypeRep a)Source#

Since: 4.4.0.0

Instance details

Defined inData.Typeable.Internal

Show (TypeRep a)Source# 
Instance details

Defined inData.Typeable.Internal

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.

mkTyConSource#

Arguments

::String

package name

->String

module name

->String

the name of the type constructor

->Int

number of kind variables

->KindRep

kind representation

->TyCon

A uniqueTyCon object Used when the strings are dynamically allocated, eg from binary deserialisation

Exquisitely unsafe.

typeRepFingerprint ::TypeRep a ->FingerprintSource#

Observe theFingerprint of a type representation

Since: 4.8.0.0

someTypeRepFingerprint ::SomeTypeRep ->FingerprintSource#

Kind representations

dataKindRep#

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 
Instances
ShowKindRepSource# 
Instance details

Defined inGHC.Show

dataTypeLitSort#

Constructors

TypeLitSymbol 
TypeLitNat 
Instances
ShowTypeLitSortSource#

Since: 4.11.0.0

Instance details

Defined inGHC.Show

Type constructors

dataTyCon#

Instances
EqTyCon 
Instance details

Defined inGHC.Classes

OrdTyCon 
Instance details

Defined inGHC.Classes

ShowTyConSource#

Since: 2.1

Instance details

Defined inGHC.Show

mkTrCon ::forall k (a :: k).TyCon -> [SomeTypeRep] ->TypeRep aSource#

Construct a representation for a type constructor applied at a monomorphic kind.

Note that this is unsafe as it allows you to construct ill-kinded types.

tyConKindRep ::TyCon ->KindRepSource#

tyConKindArgs ::TyCon ->IntSource#

tyConFingerprint ::TyCon ->FingerprintSource#

Produced byHaddock version 2.20.0


[8]ページ先頭

©2009-2025 Movatter.jp