cardano-api:internal
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Api.HasTypeProxy

Synopsis

Documentation

class Typeable t => HasTypeProxy t where Source #

Associated Types

data AsType t Source #

A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.

Values of this type are passed to deserialisation functions for example.

Methods

proxyToAsType :: Proxy t -> AsType t Source #

Instances

Instances details
HasTypeProxy AddressAny Source # 
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType AddressAny 
Instance details

Defined in Cardano.Api.Address

HasTypeProxy ByronAddr Source # 
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType ByronAddr 
Instance details

Defined in Cardano.Api.Address

HasTypeProxy ShelleyAddr Source # 
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType ShelleyAddr 
Instance details

Defined in Cardano.Api.Address

HasTypeProxy StakeAddress Source # 
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType StakeAddress 
Instance details

Defined in Cardano.Api.Address

HasTypeProxy BlockHeader Source # 
Instance details

Defined in Cardano.Api.Block

Associated Types

data AsType BlockHeader 
Instance details

Defined in Cardano.Api.Block

HasTypeProxy DRepMetadata Source # 
Instance details

Defined in Cardano.Api.DRepMetadata

Associated Types

data AsType DRepMetadata 
Instance details

Defined in Cardano.Api.DRepMetadata

HasTypeProxy AllegraEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType AllegraEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy AlonzoEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType AlonzoEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy BabbageEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType BabbageEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy ByronEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType ByronEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy ConwayEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType ConwayEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy MaryEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType MaryEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy ShelleyEra Source # 
Instance details

Defined in Cardano.Api.Eras.Core

Associated Types

data AsType ShelleyEra 
Instance details

Defined in Cardano.Api.Eras.Core

HasTypeProxy GovernancePoll Source # 
Instance details

Defined in Cardano.Api.Governance.Poll

Associated Types

data AsType GovernancePoll 
Instance details

Defined in Cardano.Api.Governance.Poll

HasTypeProxy GovernancePollAnswer Source # 
Instance details

Defined in Cardano.Api.Governance.Poll

HasTypeProxy ByronKey Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

Associated Types

data AsType ByronKey 
Instance details

Defined in Cardano.Api.Keys.Byron

HasTypeProxy ByronKeyLegacy Source # 
Instance details

Defined in Cardano.Api.Keys.Byron

Associated Types

data AsType ByronKeyLegacy 
Instance details

Defined in Cardano.Api.Keys.Byron

HasTypeProxy KesKey Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

Associated Types

data AsType KesKey 
Instance details

Defined in Cardano.Api.Keys.Praos

HasTypeProxy VrfKey Source # 
Instance details

Defined in Cardano.Api.Keys.Praos

Associated Types

data AsType VrfKey 
Instance details

Defined in Cardano.Api.Keys.Praos

HasTypeProxy CommitteeColdExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy CommitteeColdKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType CommitteeColdKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy CommitteeHotExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy CommitteeHotKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType CommitteeHotKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy DRepExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType DRepExtendedKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy DRepKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType DRepKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy GenesisDelegateExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy GenesisDelegateKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType GenesisDelegateKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy GenesisExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType GenesisExtendedKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy GenesisKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType GenesisKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy GenesisUTxOKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType GenesisUTxOKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy PaymentExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType PaymentExtendedKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy PaymentKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType PaymentKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy StakeExtendedKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType StakeExtendedKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy StakeKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType StakeKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy StakePoolKey Source # 
Instance details

Defined in Cardano.Api.Keys.Shelley

Associated Types

data AsType StakePoolKey 
Instance details

Defined in Cardano.Api.Keys.Shelley

HasTypeProxy OperationalCertificate Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTypeProxy OperationalCertificateIssueCounter Source # 
Instance details

Defined in Cardano.Api.OperationalCertificate

HasTypeProxy PraosNonce Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

Associated Types

data AsType PraosNonce 
Instance details

Defined in Cardano.Api.ProtocolParameters

HasTypeProxy UpdateProposal Source # 
Instance details

Defined in Cardano.Api.ProtocolParameters

Associated Types

data AsType UpdateProposal 
Instance details

Defined in Cardano.Api.ProtocolParameters

HasTypeProxy PlutusScriptV1 Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType PlutusScriptV1 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy PlutusScriptV2 Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType PlutusScriptV2 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy PlutusScriptV3 Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType PlutusScriptV3 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy ScriptHash Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType ScriptHash 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy ScriptInAnyLang Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType ScriptInAnyLang 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy SimpleScript' Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType SimpleScript' 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy HashableScriptData Source # 
Instance details

Defined in Cardano.Api.ScriptData

Associated Types

data AsType HashableScriptData 
Instance details

Defined in Cardano.Api.ScriptData

HasTypeProxy ScriptData Source # 
Instance details

Defined in Cardano.Api.ScriptData

Associated Types

data AsType ScriptData 
Instance details

Defined in Cardano.Api.ScriptData

HasTypeProxy TextEnvelope Source # 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

Associated Types

data AsType TextEnvelope 
Instance details

Defined in Cardano.Api.SerialiseTextEnvelope

HasTypeProxy ByronUpdateProposal Source # 
Instance details

Defined in Cardano.Api.SpecialByron

HasTypeProxy ByronVote Source # 
Instance details

Defined in Cardano.Api.SpecialByron

Associated Types

data AsType ByronVote 
Instance details

Defined in Cardano.Api.SpecialByron

HasTypeProxy StakePoolMetadata Source # 
Instance details

Defined in Cardano.Api.StakePoolMetadata

HasTypeProxy TxId Source # 
Instance details

Defined in Cardano.Api.TxIn

Associated Types

data AsType TxId 
Instance details

Defined in Cardano.Api.TxIn

HasTypeProxy TxMetadata Source # 
Instance details

Defined in Cardano.Api.TxMetadata

Associated Types

data AsType TxMetadata 
Instance details

Defined in Cardano.Api.TxMetadata

HasTypeProxy AssetName Source # 
Instance details

Defined in Cardano.Api.Value

Associated Types

data AsType AssetName 
Instance details

Defined in Cardano.Api.Value

HasTypeProxy PolicyId Source # 
Instance details

Defined in Cardano.Api.Value

Associated Types

data AsType PolicyId 
Instance details

Defined in Cardano.Api.Value

HasTypeProxy addrtype => HasTypeProxy (Address addrtype) Source # 
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType (Address addrtype) 
Instance details

Defined in Cardano.Api.Address

data AsType (Address addrtype) = AsAddress (AsType addrtype)

Methods

proxyToAsType :: Proxy (Address addrtype) -> AsType (Address addrtype) Source #

HasTypeProxy era => HasTypeProxy (AddressInEra era) Source # 
Instance details

Defined in Cardano.Api.Address

Associated Types

data AsType (AddressInEra era) 
Instance details

Defined in Cardano.Api.Address

Typeable era => HasTypeProxy (Certificate era) Source # 
Instance details

Defined in Cardano.Api.Certificate

Associated Types

data AsType (Certificate era) 
Instance details

Defined in Cardano.Api.Certificate

HasTypeProxy era => HasTypeProxy (Proposal era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

Associated Types

data AsType (Proposal era) 
Instance details

Defined in Cardano.Api.Governance.Actions.ProposalProcedure

HasTypeProxy era => HasTypeProxy (VotingProcedure era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Associated Types

data AsType (VotingProcedure era) 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

HasTypeProxy era => HasTypeProxy (VotingProcedures era) Source # 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

Associated Types

data AsType (VotingProcedures era) 
Instance details

Defined in Cardano.Api.Governance.Actions.VotingProcedure

HasTypeProxy a => HasTypeProxy (Hash a) Source # 
Instance details

Defined in Cardano.Api.Hash

Associated Types

data AsType (Hash a) 
Instance details

Defined in Cardano.Api.Hash

data AsType (Hash a) = AsHash (AsType a)

Methods

proxyToAsType :: Proxy (Hash a) -> AsType (Hash a) Source #

HasTypeProxy a => HasTypeProxy (SigningKey a) Source # 
Instance details

Defined in Cardano.Api.Keys.Class

Associated Types

data AsType (SigningKey a) 
Instance details

Defined in Cardano.Api.Keys.Class

HasTypeProxy a => HasTypeProxy (VerificationKey a) Source # 
Instance details

Defined in Cardano.Api.Keys.Class

Associated Types

data AsType (VerificationKey a) 
Instance details

Defined in Cardano.Api.Keys.Class

HasTypeProxy lang => HasTypeProxy (PlutusScript lang) Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType (PlutusScript lang) 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy lang => HasTypeProxy (Script lang) Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType (Script lang) 
Instance details

Defined in Cardano.Api.Script

data AsType (Script lang) = AsScript (AsType lang)

Methods

proxyToAsType :: Proxy (Script lang) -> AsType (Script lang) Source #

HasTypeProxy era => HasTypeProxy (ScriptInEra era) Source # 
Instance details

Defined in Cardano.Api.Script

Associated Types

data AsType (ScriptInEra era) 
Instance details

Defined in Cardano.Api.Script

HasTypeProxy era => HasTypeProxy (KeyWitness era) Source # 
Instance details

Defined in Cardano.Api.Tx.Sign

Associated Types

data AsType (KeyWitness era) 
Instance details

Defined in Cardano.Api.Tx.Sign

HasTypeProxy era => HasTypeProxy (Tx era) Source # 
Instance details

Defined in Cardano.Api.Tx.Sign

Associated Types

data AsType (Tx era) 
Instance details

Defined in Cardano.Api.Tx.Sign

data AsType (Tx era) = AsTx (AsType era)

Methods

proxyToAsType :: Proxy (Tx era) -> AsType (Tx era) Source #

HasTypeProxy era => HasTypeProxy (TxBody era) Source # 
Instance details

Defined in Cardano.Api.Tx.Sign

Associated Types

data AsType (TxBody era) 
Instance details

Defined in Cardano.Api.Tx.Sign

data AsType (TxBody era) = AsTxBody (AsType era)

Methods

proxyToAsType :: Proxy (TxBody era) -> AsType (TxBody era) Source #

data Proxy (t :: k) Source #

Proxy is a type that holds no data, but has a phantom parameter of arbitrary type (or even kind). Its use is to provide type information, even though there is no value available of that type (or it may be too costly to create one).

Historically, Proxy :: Proxy a is a safer alternative to the undefined :: a idiom.

>>> Proxy :: Proxy (Void, Int -> Int)
Proxy

Proxy can even hold types of higher kinds,

>>> Proxy :: Proxy Either
Proxy
>>> Proxy :: Proxy Functor
Proxy
>>> Proxy :: Proxy complicatedStructure
Proxy

Constructors

Proxy 

Instances

Instances details
ApplicativeB (Proxy :: (k -> Type) -> Type) 
Instance details

Defined in Barbies.Internal.ApplicativeB

Methods

bpure :: (forall (a :: k). f a) -> Proxy f

bprod :: forall (f :: k -> Type) (g :: k -> Type). Proxy f -> Proxy g -> Proxy (Product f g)

ConstraintsB (Proxy :: (k -> Type) -> Type) 
Instance details

Defined in Barbies.Internal.ConstraintsB

Methods

baddDicts :: forall (c :: k -> Constraint) (f :: k -> Type). AllB c (Proxy :: (k -> Type) -> Type) => Proxy f -> Proxy (Product (Dict c) f)

DistributiveB (Proxy :: (k -> Type) -> Type) 
Instance details

Defined in Barbies.Internal.DistributiveB

Methods

bdistribute :: forall f (g :: k -> Type). Functor f => f (Proxy g) -> Proxy (Compose f g)

FunctorB (Proxy :: (k -> Type) -> Type) 
Instance details

Defined in Barbies.Internal.FunctorB

Methods

bmap :: (forall (a :: k). f a -> g a) -> Proxy f -> Proxy g

TraversableB (Proxy :: (k -> Type) -> Type) 
Instance details

Defined in Barbies.Internal.TraversableB

Methods

btraverse :: Applicative e => (forall (a :: k). f a -> e (g a)) -> Proxy f -> e (Proxy g)

Generic1 (Proxy :: k -> Type) 
Instance details

Defined in GHC.Generics

Associated Types

type Rep1 (Proxy :: k -> Type)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

type Rep1 (Proxy :: k -> Type) = D1 ('MetaData "Proxy" "Data.Proxy" "base" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'False) (U1 :: k -> Type))

Methods

from1 :: forall (a :: k). Proxy a -> Rep1 (Proxy :: k -> Type) a Source #

to1 :: forall (a :: k). Rep1 (Proxy :: k -> Type) a -> Proxy a Source #

Representable (Proxy :: Type -> Type) 
Instance details

Defined in Data.Functor.Rep

Associated Types

type Rep (Proxy :: Type -> Type) 
Instance details

Defined in Data.Functor.Rep

type Rep (Proxy :: Type -> Type) = Void

Methods

tabulate :: (Rep (Proxy :: Type -> Type) -> a) -> Proxy a

index :: Proxy a -> Rep (Proxy :: Type -> Type) -> a

FromJSON1 (Proxy :: Type -> Type) 
Instance details

Defined in Data.Aeson.Types.FromJSON

Methods

liftParseJSON :: Maybe a -> (Value -> Parser a) -> (Value -> Parser [a]) -> Value -> Parser (Proxy a)

liftParseJSONList :: Maybe a -> (Value -> Parser a) -> (Value -> Parser [a]) -> Value -> Parser [Proxy a]

liftOmittedField :: Maybe a -> Maybe (Proxy a)

ToJSON1 (Proxy :: Type -> Type) 
Instance details

Defined in Data.Aeson.Types.ToJSON

Methods

liftToJSON :: (a -> Bool) -> (a -> Value) -> ([a] -> Value) -> Proxy a -> Value

liftToJSONList :: (a -> Bool) -> (a -> Value) -> ([a] -> Value) -> [Proxy a] -> Value

liftToEncoding :: (a -> Bool) -> (a -> Encoding) -> ([a] -> Encoding) -> Proxy a -> Encoding

liftToEncodingList :: (a -> Bool) -> (a -> Encoding) -> ([a] -> Encoding) -> [Proxy a] -> Encoding

liftOmitField :: (a -> Bool) -> Proxy a -> Bool

MonadZip (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Control.Monad.Zip

Methods

mzip :: Proxy a -> Proxy b -> Proxy (a, b) Source #

mzipWith :: (a -> b -> c) -> Proxy a -> Proxy b -> Proxy c Source #

munzip :: Proxy (a, b) -> (Proxy a, Proxy b) Source #

Foldable (Proxy :: Type -> Type)

Since: base-4.7.0.0

Instance details

Defined in Data.Foldable

Methods

fold :: Monoid m => Proxy m -> m Source #

foldMap :: Monoid m => (a -> m) -> Proxy a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Proxy a -> m Source #

foldr :: (a -> b -> b) -> b -> Proxy a -> b Source #

foldr' :: (a -> b -> b) -> b -> Proxy a -> b Source #

foldl :: (b -> a -> b) -> b -> Proxy a -> b Source #

foldl' :: (b -> a -> b) -> b -> Proxy a -> b Source #

foldr1 :: (a -> a -> a) -> Proxy a -> a Source #

foldl1 :: (a -> a -> a) -> Proxy a -> a Source #

toList :: Proxy a -> [a] Source #

null :: Proxy a -> Bool Source #

length :: Proxy a -> Int Source #

elem :: Eq a => a -> Proxy a -> Bool Source #

maximum :: Ord a => Proxy a -> a Source #

minimum :: Ord a => Proxy a -> a Source #

sum :: Num a => Proxy a -> a Source #

product :: Num a => Proxy a -> a Source #

Eq1 (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftEq :: (a -> b -> Bool) -> Proxy a -> Proxy b -> Bool Source #

Ord1 (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftCompare :: (a -> b -> Ordering) -> Proxy a -> Proxy b -> Ordering Source #

Read1 (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Show1 (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> Proxy a -> ShowS Source #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [Proxy a] -> ShowS Source #

Contravariant (Proxy :: Type -> Type) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a' -> a) -> Proxy a -> Proxy a' Source #

(>$) :: b -> Proxy b -> Proxy a Source #

Traversable (Proxy :: Type -> Type)

Since: base-4.7.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Proxy a -> f (Proxy b) Source #

sequenceA :: Applicative f => Proxy (f a) -> f (Proxy a) Source #

mapM :: Monad m => (a -> m b) -> Proxy a -> m (Proxy b) Source #

sequence :: Monad m => Proxy (m a) -> m (Proxy a) Source #

Alternative (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Data.Proxy

Methods

empty :: Proxy a Source #

(<|>) :: Proxy a -> Proxy a -> Proxy a Source #

some :: Proxy a -> Proxy [a] Source #

many :: Proxy a -> Proxy [a] Source #

Applicative (Proxy :: Type -> Type)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

pure :: a -> Proxy a Source #

(<*>) :: Proxy (a -> b) -> Proxy a -> Proxy b Source #

liftA2 :: (a -> b -> c) -> Proxy a -> Proxy b -> Proxy c Source #

(*>) :: Proxy a -> Proxy b -> Proxy b Source #

(<*) :: Proxy a -> Proxy b -> Proxy a Source #

Functor (Proxy :: Type -> Type)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

fmap :: (a -> b) -> Proxy a -> Proxy b Source #

(<$) :: a -> Proxy b -> Proxy a Source #

Monad (Proxy :: Type -> Type)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

(>>=) :: Proxy a -> (a -> Proxy b) -> Proxy b Source #

(>>) :: Proxy a -> Proxy b -> Proxy b Source #

return :: a -> Proxy a Source #

MonadPlus (Proxy :: Type -> Type)

Since: base-4.9.0.0

Instance details

Defined in Data.Proxy

Methods

mzero :: Proxy a Source #

mplus :: Proxy a -> Proxy a -> Proxy a Source #

NFData1 (Proxy :: Type -> Type)

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf :: (a -> ()) -> Proxy a -> () Source #

Hashable1 (Proxy :: Type -> Type) 
Instance details

Defined in Data.Hashable.Class

Methods

liftHashWithSalt :: (Int -> a -> Int) -> Int -> Proxy a -> Int

FromJSON (Proxy a) 
Instance details

Defined in Data.Aeson.Types.FromJSON

Methods

parseJSON :: Value -> Parser (Proxy a) #

parseJSONList :: Value -> Parser [Proxy a] #

omittedField :: Maybe (Proxy a) #

ToJSON (Proxy a) 
Instance details

Defined in Data.Aeson.Types.ToJSON

Methods

toJSON :: Proxy a -> Value #

toEncoding :: Proxy a -> Encoding #

toJSONList :: [Proxy a] -> Value #

toEncodingList :: [Proxy a] -> Encoding #

omitField :: Proxy a -> Bool #

Data t => Data (Proxy t)

Since: base-4.7.0.0

Instance details

Defined in Data.Data

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Proxy t -> c (Proxy t) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Proxy t) Source #

toConstr :: Proxy t -> Constr Source #

dataTypeOf :: Proxy t -> DataType Source #

dataCast1 :: Typeable t0 => (forall d. Data d => c (t0 d)) -> Maybe (c (Proxy t)) Source #

dataCast2 :: Typeable t0 => (forall d e. (Data d, Data e) => c (t0 d e)) -> Maybe (c (Proxy t)) Source #

gmapT :: (forall b. Data b => b -> b) -> Proxy t -> Proxy t Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Proxy t -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Proxy t -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Proxy t -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Proxy t -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Proxy t -> m (Proxy t) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Proxy t -> m (Proxy t) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Proxy t -> m (Proxy t) Source #

Monoid (Proxy s)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

mempty :: Proxy s Source #

mappend :: Proxy s -> Proxy s -> Proxy s Source #

mconcat :: [Proxy s] -> Proxy s Source #

Semigroup (Proxy s)

Since: base-4.9.0.0

Instance details

Defined in Data.Proxy

Methods

(<>) :: Proxy s -> Proxy s -> Proxy s Source #

sconcat :: NonEmpty (Proxy s) -> Proxy s Source #

stimes :: Integral b => b -> Proxy s -> Proxy s Source #

Bounded (Proxy t)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Enum (Proxy s)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

succ :: Proxy s -> Proxy s Source #

pred :: Proxy s -> Proxy s Source #

toEnum :: Int -> Proxy s Source #

fromEnum :: Proxy s -> Int Source #

enumFrom :: Proxy s -> [Proxy s] Source #

enumFromThen :: Proxy s -> Proxy s -> [Proxy s] Source #

enumFromTo :: Proxy s -> Proxy s -> [Proxy s] Source #

enumFromThenTo :: Proxy s -> Proxy s -> Proxy s -> [Proxy s] Source #

Generic (Proxy t) 
Instance details

Defined in GHC.Generics

Associated Types

type Rep (Proxy t)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

type Rep (Proxy t) = D1 ('MetaData "Proxy" "Data.Proxy" "base" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: Proxy t -> Rep (Proxy t) x Source #

to :: Rep (Proxy t) x -> Proxy t Source #

Ix (Proxy s)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

range :: (Proxy s, Proxy s) -> [Proxy s] Source #

index :: (Proxy s, Proxy s) -> Proxy s -> Int Source #

unsafeIndex :: (Proxy s, Proxy s) -> Proxy s -> Int Source #

inRange :: (Proxy s, Proxy s) -> Proxy s -> Bool Source #

rangeSize :: (Proxy s, Proxy s) -> Int Source #

unsafeRangeSize :: (Proxy s, Proxy s) -> Int Source #

Read (Proxy t)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Show (Proxy s)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

NFData (Proxy a)

Since: deepseq-1.4.0.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: Proxy a -> () Source #

Eq (Proxy s)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

(==) :: Proxy s -> Proxy s -> Bool Source #

(/=) :: Proxy s -> Proxy s -> Bool Source #

Ord (Proxy s)

Since: base-4.7.0.0

Instance details

Defined in Data.Proxy

Methods

compare :: Proxy s -> Proxy s -> Ordering Source #

(<) :: Proxy s -> Proxy s -> Bool Source #

(<=) :: Proxy s -> Proxy s -> Bool Source #

(>) :: Proxy s -> Proxy s -> Bool Source #

(>=) :: Proxy s -> Proxy s -> Bool Source #

max :: Proxy s -> Proxy s -> Proxy s Source #

min :: Proxy s -> Proxy s -> Proxy s Source #

Abelian (Proxy x) 
Instance details

Defined in Data.Group

Cyclic (Proxy x) 
Instance details

Defined in Data.Group

Methods

generator :: Proxy x

Group (Proxy x) 
Instance details

Defined in Data.Group

Methods

invert :: Proxy x -> Proxy x

(~~) :: Proxy x -> Proxy x -> Proxy x

pow :: Integral x0 => Proxy x -> x0 -> Proxy x

Hashable (Proxy a) 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Proxy a -> Int

hash :: Proxy a -> Int

MonoFoldable (Proxy a) 
Instance details

Defined in Data.MonoTraversable

Methods

ofoldMap :: Monoid m => (Element (Proxy a) -> m) -> Proxy a -> m

ofoldr :: (Element (Proxy a) -> b -> b) -> b -> Proxy a -> b

ofoldl' :: (a0 -> Element (Proxy a) -> a0) -> a0 -> Proxy a -> a0

otoList :: Proxy a -> [Element (Proxy a)]

oall :: (Element (Proxy a) -> Bool) -> Proxy a -> Bool

oany :: (Element (Proxy a) -> Bool) -> Proxy a -> Bool

onull :: Proxy a -> Bool

olength :: Proxy a -> Int

olength64 :: Proxy a -> Int64

ocompareLength :: Integral i => Proxy a -> i -> Ordering

otraverse_ :: Applicative f => (Element (Proxy a) -> f b) -> Proxy a -> f ()

ofor_ :: Applicative f => Proxy a -> (Element (Proxy a) -> f b) -> f ()

omapM_ :: Applicative m => (Element (Proxy a) -> m ()) -> Proxy a -> m ()

oforM_ :: Applicative m => Proxy a -> (Element (Proxy a) -> m ()) -> m ()

ofoldlM :: Monad m => (a0 -> Element (Proxy a) -> m a0) -> a0 -> Proxy a -> m a0

ofoldMap1Ex :: Semigroup m => (Element (Proxy a) -> m) -> Proxy a -> m

ofoldr1Ex :: (Element (Proxy a) -> Element (Proxy a) -> Element (Proxy a)) -> Proxy a -> Element (Proxy a)

ofoldl1Ex' :: (Element (Proxy a) -> Element (Proxy a) -> Element (Proxy a)) -> Proxy a -> Element (Proxy a)

headEx :: Proxy a -> Element (Proxy a)

lastEx :: Proxy a -> Element (Proxy a)

unsafeHead :: Proxy a -> Element (Proxy a)

unsafeLast :: Proxy a -> Element (Proxy a)

maximumByEx :: (Element (Proxy a) -> Element (Proxy a) -> Ordering) -> Proxy a -> Element (Proxy a)

minimumByEx :: (Element (Proxy a) -> Element (Proxy a) -> Ordering) -> Proxy a -> Element (Proxy a)

oelem :: Element (Proxy a) -> Proxy a -> Bool

onotElem :: Element (Proxy a) -> Proxy a -> Bool

MonoFunctor (Proxy a) 
Instance details

Defined in Data.MonoTraversable

Methods

omap :: (Element (Proxy a) -> Element (Proxy a)) -> Proxy a -> Proxy a

MonoPointed (Proxy a) 
Instance details

Defined in Data.MonoTraversable

Methods

opoint :: Element (Proxy a) -> Proxy a

MonoTraversable (Proxy a) 
Instance details

Defined in Data.MonoTraversable

Methods

otraverse :: Applicative f => (Element (Proxy a) -> f (Element (Proxy a))) -> Proxy a -> f (Proxy a)

omapM :: Applicative m => (Element (Proxy a) -> m (Element (Proxy a))) -> Proxy a -> m (Proxy a)

Serialise (Proxy a) 
Instance details

Defined in Codec.Serialise.Class

type AllB (c :: k -> Constraint) (Proxy :: (k -> Type) -> Type) 
Instance details

Defined in Barbies.Internal.ConstraintsB

type AllB (c :: k -> Constraint) (Proxy :: (k -> Type) -> Type) = ()
type Rep1 (Proxy :: k -> Type)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

type Rep1 (Proxy :: k -> Type) = D1 ('MetaData "Proxy" "Data.Proxy" "base" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'False) (U1 :: k -> Type))
type Rep (Proxy :: Type -> Type) 
Instance details

Defined in Data.Functor.Rep

type Rep (Proxy :: Type -> Type) = Void
type Rep (Proxy t)

Since: base-4.6.0.0

Instance details

Defined in GHC.Generics

type Rep (Proxy t) = D1 ('MetaData "Proxy" "Data.Proxy" "base" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'False) (U1 :: Type -> Type))
type Element (Proxy a) 
Instance details

Defined in Data.MonoTraversable

type Element (Proxy a) = a

data FromSomeType (c :: Type -> Constraint) b where Source #

Constructors

FromSomeType :: forall (c :: Type -> Constraint) a b. c a => AsType a -> (a -> b) -> FromSomeType c b