License | BSD-style (see the LICENSE file in the distribution) |
---|---|
Maintainer | libraries@haskell.org |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Definition of a Proxy type (poly-kinded in GHC)
Since: 4.7.0.0
Documentation
A concrete, poly-kinded proxy type
Monad (Proxy *) Source # | |
Functor (Proxy *) Source # | |
Applicative (Proxy *) Source # | |
Foldable (Proxy *) Source # | |
Traversable (Proxy *) Source # | |
Generic1 (Proxy *) Source # | |
MonadPlus (Proxy *) Source # | |
Alternative (Proxy *) Source # | |
MonadZip (Proxy *) Source # | |
Show1 (Proxy *) Source # | Since: 4.9.0.0 |
Read1 (Proxy *) Source # | Since: 4.9.0.0 |
Ord1 (Proxy *) Source # | Since: 4.9.0.0 |
Eq1 (Proxy *) Source # | Since: 4.9.0.0 |
Bounded (Proxy k s) Source # | |
Enum (Proxy k s) Source # | |
Eq (Proxy k s) Source # | |
Data t => Data (Proxy * t) Source # | |
Ord (Proxy k s) Source # | |
Read (Proxy k s) Source # | |
Show (Proxy k s) Source # | |
Ix (Proxy k s) Source # | |
Generic (Proxy k t) Source # | |
Semigroup (Proxy k s) Source # | |
Monoid (Proxy k s) Source # | |
type Rep1 (Proxy *) Source # | |
type Rep (Proxy k t) Source # | |
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.