plutus-pab-1.2.0.0
Safe Haskell None
Language Haskell2010

Cardano.BM.Data.Tracer.Extras

Synopsis

Documentation

mkObjectStr :: StructuredLog k => Text -> k -> KeyMap Value Source #

A structured log object with a textual description and additional fields.

newtype PrettyToObject a Source #

Deriving ToObject from Pretty

Constructors

PrettyToObject

Fields

Instances

Instances details
Pretty a => ToObject ( PrettyToObject a) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

class StructuredLog a where Source #

Types that can be turned into structured log messages

Instances

Instances details
StructuredLog () Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog Loc Source #
Instance details

Defined in Plutus.PAB.Instances

StructuredLog LogSource Source #
Instance details

Defined in Plutus.PAB.Instances

StructuredLog CardanoTx Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog Value Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog UUID Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog RequestHandlerLogMsg Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

Methods

toStructuredLog :: RequestHandlerLogMsg -> KeyMap Value Source #

StructuredLog TxBalanceMsg Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog EndpointDescription Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

Methods

toStructuredLog :: EndpointDescription -> KeyMap Value Source #

StructuredLog ContractInstanceId Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog CheckpointLogMsg Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog IterationID Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

StructuredLog a => StructuredLog ( Maybe a) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

ToJSON v => StructuredLog (Response v) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

ToJSON v => StructuredLog ( PartiallyDecodedResponse v) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

( StructuredLog a, StructuredLog b) => StructuredLog ( Either a b) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

( StructuredLog a, StructuredLog b) => StructuredLog (a, b) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

( ToJSON w, ToJSON v) => StructuredLog (ContractRequest w v) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

Methods

toStructuredLog :: ContractRequest w v -> KeyMap Value Source #

( StructuredLog a, StructuredLog b, StructuredLog c) => StructuredLog (a, b, c) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

( KnownSymbol s, ToJSON a) => StructuredLog ( Tagged s a) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

( StructuredLog a, StructuredLog b, StructuredLog c, StructuredLog d) => StructuredLog (a, b, c, d) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

newtype Tagged (s :: k) b Source #

A Tagged s b value is a value b with an attached phantom type s . This can be used in place of the more traditional but less safe idiom of passing in an undefined value with the type, because unlike an (s -> b) , a Tagged s b can't try to use the argument s as a real value.

Moreover, you don't have to rely on the compiler to inline away the extra argument, because the newtype is "free"

Tagged has kind k -> * -> * if the compiler supports PolyKinds , therefore there is an extra k showing in the instance haddocks that may cause confusion.

Constructors

Tagged b

Instances

Instances details
BeamSqlBackendIsString be t => BeamSqlBackendIsString (be :: k1) ( Tagged tag t :: Type )
Instance details

Defined in Database.Beam.Backend.SQL

HasSqlEqualityCheck Postgres a => HasSqlEqualityCheck Postgres ( Tagged t a)
Instance details

Defined in Database.Beam.Postgres.Types

HasSqlQuantifiedEqualityCheck Postgres a => HasSqlQuantifiedEqualityCheck Postgres ( Tagged t a)
Instance details

Defined in Database.Beam.Postgres.Types

HasSqlValueSyntax vs t => HasSqlValueSyntax vs ( Tagged tag t)
Instance details

Defined in Database.Beam.Backend.SQL.SQL92

( BeamBackend be, FromBackendRow be t) => FromBackendRow be ( Tagged tag t)
Instance details

Defined in Database.Beam.Backend.SQL.Row

ToJSON2 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Aeson.Types.ToJSON

Methods

liftToJSON2 :: (a -> Value ) -> ([a] -> Value ) -> (b -> Value ) -> ([b] -> Value ) -> Tagged a b -> Value Source #

liftToJSONList2 :: (a -> Value ) -> ([a] -> Value ) -> (b -> Value ) -> ([b] -> Value ) -> [ Tagged a b] -> Value Source #

liftToEncoding2 :: (a -> Encoding ) -> ([a] -> Encoding ) -> (b -> Encoding ) -> ([b] -> Encoding ) -> Tagged a b -> Encoding Source #

liftToEncodingList2 :: (a -> Encoding ) -> ([a] -> Encoding ) -> (b -> Encoding ) -> ([b] -> Encoding ) -> [ Tagged a b] -> Encoding Source #

FromJSON2 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Aeson.Types.FromJSON

Bifunctor ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Methods

bimap :: (a -> b) -> (c -> d) -> Tagged a c -> Tagged b d Source #

first :: (a -> b) -> Tagged a c -> Tagged b c Source #

second :: (b -> c) -> Tagged a b -> Tagged a c Source #

Bitraversable ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Tagged a b -> f ( Tagged c d) Source #

Bifoldable ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Methods

bifold :: Monoid m => Tagged m m -> m Source #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Tagged a b -> m Source #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Tagged a b -> c Source #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Tagged a b -> c Source #

Eq2 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Methods

liftEq2 :: (a -> b -> Bool ) -> (c -> d -> Bool ) -> Tagged a c -> Tagged b d -> Bool Source #

Ord2 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Methods

liftCompare2 :: (a -> b -> Ordering ) -> (c -> d -> Ordering ) -> Tagged a c -> Tagged b d -> Ordering Source #

Read2 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Show2 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Tagged

Methods

liftShowsPrec2 :: ( Int -> a -> ShowS ) -> ([a] -> ShowS ) -> ( Int -> b -> ShowS ) -> ([b] -> ShowS ) -> Int -> Tagged a b -> ShowS Source #

liftShowList2 :: ( Int -> a -> ShowS ) -> ([a] -> ShowS ) -> ( Int -> b -> ShowS ) -> ([b] -> ShowS ) -> [ Tagged a b] -> ShowS Source #

Biapplicative ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Biapplicative

Profunctor ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Tagged b c -> Tagged a d Source #

lmap :: (a -> b) -> Tagged b c -> Tagged a c Source #

rmap :: (b -> c) -> Tagged a b -> Tagged a c Source #

(#.) :: forall a b c q. Coercible c b => q b c -> Tagged a b -> Tagged a c Source #

(.#) :: forall a b c q. Coercible b a => Tagged b c -> q a b -> Tagged a c Source #

Bitraversable1 ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

bitraverse1 :: Apply f => (a -> f b) -> (c -> f d) -> Tagged a c -> f ( Tagged b d) Source #

bisequence1 :: Apply f => Tagged (f a) (f b) -> f ( Tagged a b) Source #

Costrong ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Profunctor.Strong

Corepresentable ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Profunctor.Rep

Choice ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Profunctor.Choice

Generic1 ( Tagged s :: Type -> Type )
Instance details

Defined in Data.Tagged

Associated Types

type Rep1 ( Tagged s) :: k -> Type Source #

Methods

from1 :: forall (a :: k). Tagged s a -> Rep1 ( Tagged s) a Source #

to1 :: forall (a :: k). Rep1 ( Tagged s) a -> Tagged s a Source #

Monad ( Tagged s)
Instance details

Defined in Data.Tagged

Functor ( Tagged s)
Instance details

Defined in Data.Tagged

Methods

fmap :: (a -> b) -> Tagged s a -> Tagged s b Source #

(<$) :: a -> Tagged s b -> Tagged s a Source #

Applicative ( Tagged s)
Instance details

Defined in Data.Tagged

Foldable ( Tagged s)
Instance details

Defined in Data.Tagged

Traversable ( Tagged s)
Instance details

Defined in Data.Tagged

Representable ( Tagged t)
Instance details

Defined in Data.Functor.Rep

Associated Types

type Rep ( Tagged t) Source #

ToJSON1 ( Tagged a)
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON1 ( Tagged a)
Instance details

Defined in Data.Aeson.Types.FromJSON

Eq1 ( Tagged s)
Instance details

Defined in Data.Tagged

Methods

liftEq :: (a -> b -> Bool ) -> Tagged s a -> Tagged s b -> Bool Source #

Ord1 ( Tagged s)
Instance details

Defined in Data.Tagged

Show1 ( Tagged s)
Instance details

Defined in Data.Tagged

Read1 ( Tagged s)
Instance details

Defined in Data.Tagged

Comonad ( Tagged s)
Instance details

Defined in Control.Comonad

Traversable1 ( Tagged a)
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a0 -> f b) -> Tagged a a0 -> f ( Tagged a b) Source #

sequence1 :: Apply f => Tagged a (f b) -> f ( Tagged a b) Source #

( BeamSqlBackend ( MockSqlBackend cmd), HasSqlEqualityCheck ( MockSqlBackend cmd) a) => HasSqlEqualityCheck ( MockSqlBackend cmd) ( Tagged t a)
Instance details

Defined in Database.Beam.Query.Ord

( BeamSqlBackend ( MockSqlBackend cmd), HasSqlQuantifiedEqualityCheck ( MockSqlBackend cmd) a) => HasSqlQuantifiedEqualityCheck ( MockSqlBackend cmd) ( Tagged t a)
Instance details

Defined in Database.Beam.Query.Ord

Bounded b => Bounded ( Tagged s b)
Instance details

Defined in Data.Tagged

Enum a => Enum ( Tagged s a)
Instance details

Defined in Data.Tagged

Eq b => Eq ( Tagged s b)
Instance details

Defined in Data.Tagged

Floating a => Floating ( Tagged s a)
Instance details

Defined in Data.Tagged

Fractional a => Fractional ( Tagged s a)
Instance details

Defined in Data.Tagged

Integral a => Integral ( Tagged s a)
Instance details

Defined in Data.Tagged

( Data s, Data b) => Data ( Tagged s b)
Instance details

Defined in Data.Tagged

Methods

gfoldl :: ( forall d b0. Data d => c (d -> b0) -> d -> c b0) -> ( forall g. g -> c g) -> Tagged s b -> c ( Tagged s b) Source #

gunfold :: ( forall b0 r. Data b0 => c (b0 -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c ( Tagged s b) Source #

toConstr :: Tagged s b -> Constr Source #

dataTypeOf :: Tagged s b -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c ( Tagged s b)) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c ( Tagged s b)) Source #

gmapT :: ( forall b0. Data b0 => b0 -> b0) -> Tagged s b -> Tagged s b Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Tagged s b -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Tagged s b -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> Tagged s b -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> Tagged s b -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Tagged s b -> m ( Tagged s b) Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Tagged s b -> m ( Tagged s b) Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Tagged s b -> m ( Tagged s b) Source #

Num a => Num ( Tagged s a)
Instance details

Defined in Data.Tagged

Ord b => Ord ( Tagged s b)
Instance details

Defined in Data.Tagged

Read b => Read ( Tagged s b)
Instance details

Defined in Data.Tagged

Real a => Real ( Tagged s a)
Instance details

Defined in Data.Tagged

RealFloat a => RealFloat ( Tagged s a)
Instance details

Defined in Data.Tagged

RealFrac a => RealFrac ( Tagged s a)
Instance details

Defined in Data.Tagged

Show b => Show ( Tagged s b)
Instance details

Defined in Data.Tagged

Ix b => Ix ( Tagged s b)
Instance details

Defined in Data.Tagged

IsString a => IsString ( Tagged s a)
Instance details

Defined in Data.Tagged

Generic ( Tagged s b)
Instance details

Defined in Data.Tagged

Associated Types

type Rep ( Tagged s b) :: Type -> Type Source #

Semigroup a => Semigroup ( Tagged s a)
Instance details

Defined in Data.Tagged

( Semigroup a, Monoid a) => Monoid ( Tagged s a)
Instance details

Defined in Data.Tagged

NFData b => NFData ( Tagged s b)
Instance details

Defined in Data.Tagged

Methods

rnf :: Tagged s b -> () Source #

FiniteBits a => FiniteBits ( Tagged s a)
Instance details

Defined in Data.Tagged

ToJSON b => ToJSON ( Tagged a b)
Instance details

Defined in Data.Aeson.Types.ToJSON

ToJSONKey b => ToJSONKey ( Tagged a b)
Instance details

Defined in Data.Aeson.Types.ToJSON

FromJSON b => FromJSON ( Tagged a b)
Instance details

Defined in Data.Aeson.Types.FromJSON

FromJSONKey b => FromJSONKey ( Tagged a b)
Instance details

Defined in Data.Aeson.Types.FromJSON

Storable a => Storable ( Tagged s a)
Instance details

Defined in Data.Tagged

Bits a => Bits ( Tagged s a)
Instance details

Defined in Data.Tagged

( Typeable s, FromCBOR a) => FromCBOR ( Tagged s a)
Instance details

Defined in Cardano.Binary.FromCBOR

ToFormKey a => ToFormKey ( Tagged b a)
Instance details

Defined in Web.Internal.FormUrlEncoded

FromFormKey a => FromFormKey ( Tagged b a)
Instance details

Defined in Web.Internal.FormUrlEncoded

ToHttpApiData a => ToHttpApiData ( Tagged b a)

Note: this instance is not polykinded

Instance details

Defined in Web.Internal.HttpApiData

FromHttpApiData a => FromHttpApiData ( Tagged b a)

Note: this instance is not polykinded

Instance details

Defined in Web.Internal.HttpApiData

Lattice a => Lattice ( Tagged t a)
Instance details

Defined in Algebra.Lattice

BoundedJoinSemiLattice a => BoundedJoinSemiLattice ( Tagged t a)
Instance details

Defined in Algebra.Lattice

BoundedMeetSemiLattice a => BoundedMeetSemiLattice ( Tagged t a)
Instance details

Defined in Algebra.Lattice

Wrapped ( Tagged s a)
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped ( Tagged s a) Source #

( KnownSymbol s, ToJSON a) => StructuredLog ( Tagged s a) Source #
Instance details

Defined in Cardano.BM.Data.Tracer.Extras

t ~ Tagged s' a' => Rewrapped ( Tagged s a) t
Instance details

Defined in Control.Lens.Wrapped

type Corep ( Tagged :: Type -> Type -> Type )
Instance details

Defined in Data.Profunctor.Rep

type Rep1 ( Tagged s :: Type -> Type )
Instance details

Defined in Data.Tagged

type Rep1 ( Tagged s :: Type -> Type ) = D1 (' MetaData "Tagged" "Data.Tagged" "tagged-0.8.7-Hh8SrsJ8Ofo2TZerdJ0cCc" ' True ) ( C1 (' MetaCons "Tagged" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unTagged") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) Par1 ))
type Rep ( Tagged t)
Instance details

Defined in Data.Functor.Rep

type Rep ( Tagged t) = ()
type Rep ( Tagged s b)
Instance details

Defined in Data.Tagged

type Rep ( Tagged s b) = D1 (' MetaData "Tagged" "Data.Tagged" "tagged-0.8.7-Hh8SrsJ8Ofo2TZerdJ0cCc" ' True ) ( C1 (' MetaCons "Tagged" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unTagged") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 b)))
type Unwrapped ( Tagged s a)
Instance details

Defined in Control.Lens.Wrapped

type Unwrapped ( Tagged s a) = a