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