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
Generic1 k (Proxy k) Source # | |
Monad (Proxy *) Source # | Since: 4.7.0.0 |
Functor (Proxy *) Source # | Since: 4.7.0.0 |
Applicative (Proxy *) Source # | Since: 4.7.0.0 |
Foldable (Proxy *) Source # | Since: 4.7.0.0 |
Traversable (Proxy *) Source # | Since: 4.7.0.0 |
MonadPlus (Proxy *) Source # | Since: 4.9.0.0 |
Alternative (Proxy *) Source # | Since: 4.9.0.0 |
MonadZip (Proxy *) Source # | Since: 4.9.0.0 |
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 t) Source # | |
Enum (Proxy k s) Source # | Since: 4.7.0.0 |
Eq (Proxy k s) Source # | Since: 4.7.0.0 |
Data t => Data (Proxy * t) Source # | Since: 4.7.0.0 |
Ord (Proxy k s) Source # | Since: 4.7.0.0 |
Read (Proxy k s) Source # | Since: 4.7.0.0 |
Show (Proxy k s) Source # | Since: 4.7.0.0 |
Ix (Proxy k s) Source # | Since: 4.7.0.0 |
Generic (Proxy k t) Source # | |
Semigroup (Proxy k s) Source # | Since: 4.9.0.0 |
Monoid (Proxy k s) Source # | Since: 4.7.0.0 |
type Rep1 k (Proxy k) 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.