happstack-data-6.0.1: Happstack data manipulation libraries

Safe HaskellNone

Happstack.Data.Proxy

Synopsis

Documentation

data Proxy t Source

Proxy is empty and is used as a transport of a phantom type

Constructors

Proxy 

Instances

Typeable1 Proxy 
(Data ctx t0, Sat (ctx (Proxy t0))) => Data ctx (Proxy t0) 
Data t0 => Data (Proxy t0) 
Read (Proxy t0) 
Show (Proxy t0) 
Default t0 => Default (Proxy t0) 
Typeable a => Serialize (Proxy a) 
Version (Proxy a) 

proxy :: t -> Proxy tSource

Creates the Proxy with a type matching the argument

unProxy :: Proxy t -> tSource

Returns bottom

asProxyType :: t -> Proxy t -> tSource

Acts as id except for providing type restrictions