base-4.9.0.0: Basic libraries

Data.Proxy

Description

Definition of a Proxy type (poly-kinded in GHC)

Since: 4.7.0.0

Synopsis

# Documentation

data Proxy t Source #

A concrete, poly-kinded proxy type

Constructors

 Proxy

Instances

asProxyTypeOf :: a -> Proxy a -> a Source #

asProxyTypeOf is a type-restricted version of const. It is usually used as an infix operator, and its typing forces its first argument (which is usually overloaded) to have the same type as the tag of the second.

data KProxy t Source #

A concrete, promotable proxy type, for use at the kind level There are no instances for this because it is intended at the kind level only

Constructors

 KProxy