HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleouroboros-consensus-4.2.1.0

Ouroboros.Consensus.HardFork.Combinator.Embed.Unary

  • 3 types
  • 1 class
  • 9 values
datadata Proxy (t :: k)
#

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.

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

Proxy can even hold types of higher kinds,

Example1 expression
Proxy :: Proxy EitherProxy
Example1 expression
Proxy :: Proxy FunctorProxy
Example1 expression
Proxy :: Proxy complicatedStructureProxy
Instances97Generic1, FoldableWithIndex, FunctorWithIndex, TraversableWithIndex, RepeatWithIndex, SemialignWithIndex, …
  • Generic1 ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Generics
  • FoldableWithIndex Void ProxyDefined in indexed-traversable-0.1.5 · WithIndex
  • FunctorWithIndex Void ProxyDefined in indexed-traversable-0.1.5 · WithIndex
  • TraversableWithIndex Void ProxyDefined in indexed-traversable-0.1.5 · WithIndex
  • RepeatWithIndex Void ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • SemialignWithIndex Void ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • ZipWithIndex Void ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • FilterableWithIndex Void ProxyDefined in witherable-0.5 · Witherable
  • WitherableWithIndex Void ProxyDefined in witherable-0.5 · Witherable
  • ApplicativeB ProxyDefined in barbies-2.1.1.0 · Barbies.Internal.ApplicativeB
  • ConstraintsB ProxyDefined in barbies-2.1.1.0 · Barbies.Internal.ConstraintsB
  • DistributiveB ProxyDefined in barbies-2.1.1.0 · Barbies.Internal.DistributiveB
  • FunctorB ProxyDefined in barbies-2.1.1.0 · Barbies.Internal.FunctorB
  • TraversableB ProxyDefined in barbies-2.1.1.0 · Barbies.Internal.TraversableB
  • EqP ProxyDefined in some-1.0.6 · Data.EqP
  • OrdP ProxyDefined in some-1.0.6 · Data.OrdP
  • Monad ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Functor ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Applicative ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Foldable ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Foldable
  • Traversable ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Traversable
  • Alternative ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • MonadPlus ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • MonadZip ProxyDefined in ghc-internal-9.1401.0 · GHC.Internal.Control.Monad.Zip
  • Eq1 ProxyDefined in base-4.22.0.0 · Data.Functor.Classes
  • Ord1 ProxyDefined in base-4.22.0.0 · Data.Functor.Classes
  • Read1 ProxyDefined in base-4.22.0.0 · Data.Functor.Classes
  • Show1 ProxyDefined in base-4.22.0.0 · Data.Functor.Classes
  • Contravariant ProxyDefined in base-4.22.0.0 · Data.Functor.Contravariant
  • NFData1 ProxyDefined in deepseq-1.5.1.0 · Control.DeepSeq
  • Arbitrary1 ProxyDefined in quickcheck-instances-0.4 · Test.QuickCheck.Instances.Tagged · orphan
  • Hashable1 ProxyDefined in hashable-1.5.1.0 · Data.Hashable.Class
  • Distributive ProxyDefined in distributive-0.6.3 · Data.Distributive
  • Decidable ProxyDefined in contravariant-1.5.6 · Data.Functor.Contravariant.Divisible
  • Divisible ProxyDefined in contravariant-1.5.6 · Data.Functor.Contravariant.Divisible
  • Alt ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Alt
  • Apply ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Bind.Class
  • Bind ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Bind.Class
  • Extend ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Extend
  • Conclude ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Contravariant.Conclude
  • Decide ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Contravariant.Decide
  • Divise ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Contravariant.Divise
  • Plus ProxyDefined in semigroupoids-6.0.2 · Data.Functor.Plus
  • Representable ProxyDefined in adjunctions-4.4.4 · Data.Functor.Rep
  • Representable ProxyDefined in adjunctions-4.4.4 · Data.Functor.Contravariant.Rep
  • Align ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • Semialign ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • Unalign ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • Repeat ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • Unzip ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • Zip ProxyDefined in semialign-1.4 · Data.Semialign.Internal
  • Filterable ProxyDefined in witherable-0.5 · Witherable
  • Witherable ProxyDefined in witherable-0.5 · Witherable
  • FromJSON1 ProxyDefined in aeson-2.2.5.1 · Data.Aeson.Types.FromJSON
  • ToJSON1 ProxyDefined in aeson-2.2.5.1 · Data.Aeson.Types.ToJSON
  • Invariant ProxyDefined in invariant-0.6.5 · Data.Functor.Invariant
  • CollectScopeInfo ProxyDefined in plutus-core-1.70.0.0 · PlutusCore.Check.Scoping
  • EstablishScoping ProxyDefined in plutus-core-1.70.0.0 · PlutusCore.Check.Scoping
  • Selective ProxyDefined in selective-0.7.0.1 · Control.Selective
  • Cosieve Tagged ProxyDefined in profunctors-5.6.3 · Data.Profunctor.Sieve
  • Bounded (Proxy t)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Enum (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Eq (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Data t => Data (Proxy t)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Data
  • Ord (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Read (Proxy t)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Show (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Ix (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Generic (Proxy t)Defined in ghc-internal-9.1401.0 · GHC.Internal.Generics
  • Semigroup (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • Monoid (Proxy s)Defined in ghc-internal-9.1401.0 · GHC.Internal.Data.Proxy
  • NFData (Proxy a)Defined in deepseq-1.5.1.0 · Control.DeepSeq
  • Arbitrary (Proxy a)Defined in quickcheck-instances-0.4 · Test.QuickCheck.Instances.Tagged · orphan
  • CoArbitrary (Proxy a)Defined in quickcheck-instances-0.4 · Test.QuickCheck.Instances.Tagged · orphan
  • Function (Proxy a)Defined in quickcheck-instances-0.4 · Test.QuickCheck.Instances.Tagged · orphan
  • Hashable (Proxy a)Defined in hashable-1.5.1.0 · Data.Hashable.Class
  • FromJSON (Proxy a)Defined in aeson-2.2.5.1 · Data.Aeson.Types.FromJSON
  • ToJSON (Proxy a)Defined in aeson-2.2.5.1 · Data.Aeson.Types.ToJSON
  • Default (Proxy a)Defined in data-default-0.8.0.2 · Data.Default.Internal
  • Serialise (Proxy a)Defined in serialise-0.2.6.1 · Codec.Serialise.Class
  • Boring (Proxy a)Defined in boring-0.2.2.1 · Data.Boring
  • Finite (Proxy a)Defined in universe-base-1.1.4 · Data.Universe.Class
  • Universe (Proxy a)Defined in universe-base-1.1.4 · Data.Universe.Class
  • MonoFoldable (Proxy a)Defined in mono-traversable-1.0.21.0 · Data.MonoTraversable
  • MonoFunctor (Proxy a)Defined in mono-traversable-1.0.21.0 · Data.MonoTraversable
  • MonoTraversable (Proxy a)Defined in mono-traversable-1.0.21.0 · Data.MonoTraversable
  • MonoPointed (Proxy a)Defined in mono-traversable-1.0.21.0 · Data.MonoTraversable
  • ToExpr (Proxy a)Defined in tree-diff-0.4.1 · Data.TreeDiff.Class
  • Abelian (Proxy x)Defined in groups-0.5.3 · Data.Group
  • Cyclic (Proxy x)Defined in groups-0.5.3 · Data.Group
  • Group (Proxy x)Defined in groups-0.5.3 · Data.Group

    Trivial group, Functor style.

  • type Rep (Proxy t) = D1 ('MetaData "Proxy" "GHC.Internal.Data.Proxy" "ghc-internal" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'False) U1)Defined in ghc-internal-9.1401.0 · GHC.Internal.Generics
  • type Rep1 Proxy = D1 ('MetaData "Proxy" "GHC.Internal.Data.Proxy" "ghc-internal" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'False) U1)Defined in ghc-internal-9.1401.0 · GHC.Internal.Generics
  • type Rep Proxy = VoidDefined in adjunctions-4.4.4 · Data.Functor.Rep
  • type Rep Proxy = ()Defined in adjunctions-4.4.4 · Data.Functor.Contravariant.Rep
  • type AllB c Proxy = ()Defined in barbies-2.1.1.0 · Barbies.Internal.ConstraintsB
  • type Element (Proxy a) = aDefined in mono-traversable-1.0.21.0 · Data.MonoTraversable
classclass Isomorphic (f :: Type -> Type) where
#

Methods

Instances37Isomorphic, …
  • Isomorphic BlockConfigDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic CodecConfigDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic HeaderDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic StorageConfigDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic ForgeStateUpdateInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic TopLevelConfigDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic AnnTipDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic HeaderStateDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic GenTxDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic ProtocolClientInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic ProtocolInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic SerialisedHeaderDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapApplyTxErrDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapCanBeLeaderDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapCannotForgeDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapChainDepStateDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapEnvelopeErrDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapForgeStateInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapForgeStateUpdateErrorDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapGenTxIdDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapHeaderHashDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapIsLeaderDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapLedgerErrDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapLedgerViewDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapTipInfoDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic WrapValidatedGenTxDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic IDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Functor m => Isomorphic (BlockForging m)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Functor m => Isomorphic (MkBlockForging m)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Functor m => Isomorphic (InitChainDB m)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic ChainHashDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic (FlipTickedLedgerState mk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic (SomeSecond (NestedCtxt f))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic ((->) a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • (IsSOPLike h, forall blk. Coercible (f (HardForkBlock '[blk])) (h f '[blk])) => Isomorphic (IsomorphicUnary h f)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic (Flip LedgerState mk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • Isomorphic (Flip ExtLedgerState mk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
newtypenewtype I a
#

The identity type functor.

Like Identity, but with a shorter name.

Constructors

Instances28Monad, Functor, Applicative, Foldable, Traversable, Eq1, …
  • Monad IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Functor IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Applicative IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Foldable IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Traversable IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Eq1 IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Ord1 IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Read1 IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Show1 IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • NFData1 IDefined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Inject IDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Nary
  • Isomorphic IDefined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
  • SerialiseNodeToClient blk blk => SerialiseNodeToClient blk (I blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Node.Serialisation
  • EncodeDisk blk blk => EncodeDisk blk (I blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation
  • (EncodeDiskDepIx f blk, EncodeDiskDep f blk) => EncodeDisk blk (DepPair (f blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation
  • DecodeDisk blk blk => DecodeDisk blk (I blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation
  • (DecodeDiskDepIx f blk, DecodeDiskDep f blk) => DecodeDisk blk (DepPair (f blk))Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Storage.Serialisation
  • SerialiseNodeToNode blk blk => SerialiseNodeToNode blk (I blk)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.Node.Serialisation
  • Eq a => Eq (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Ord a => Ord (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Read a => Read (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Show a => Show (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Generic (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Semigroup a => Semigroup (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Monoid a => Monoid (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • NFData a => NFData (I a)Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors
  • Condense a => Condense (I a)Defined in ouroboros-consensus-4.2.1.0 · Ouroboros.Consensus.HardFork.Combinator.Condense · orphan
  • type Rep (I a) = D1 ('MetaData "I" "Data.SOP.BasicFunctors" "sop-core-0.5.0.2-J2FYzhYjat76WkDyWxbBsC" 'True) (C1 ('MetaCons "I" 'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))Defined in sop-core-0.5.0.2 · Data.SOP.BasicFunctors