| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusTx.Blueprint.Schema.Annotation
Synopsis
- data SchemaInfo = MkSchemaInfo {}
- emptySchemaInfo :: SchemaInfo
- annotationsToSchemaInfo :: [SchemaAnn] -> Either SchemaInfoError SchemaInfo
- data SchemaAnn
- newtype SchemaTitle = SchemaTitle {}
- newtype SchemaDescription = SchemaDescription {}
- newtype SchemaComment = SchemaComment {}
Documentation
data SchemaInfo Source #
Additional information optionally attached to any datatype schema definition.
Constructors
| MkSchemaInfo | |
Instances
annotationsToSchemaInfo :: [SchemaAnn] -> Either SchemaInfoError SchemaInfo Source #
Annotation that can be attached to a schema definition.
Constructors
| MkSchemaAnnTitle SchemaTitle | |
| MkSchemaAnnDescription SchemaDescription | |
| MkSchemaAnnComment SchemaComment |
Instances
| Data SchemaAnn Source # | |||||
Defined in PlutusTx.Blueprint.Schema.Annotation Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaAnn -> c SchemaAnn Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaAnn Source # toConstr :: SchemaAnn -> Constr Source # dataTypeOf :: SchemaAnn -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaAnn) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaAnn) Source # gmapT :: (forall b. Data b => b -> b) -> SchemaAnn -> SchemaAnn Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaAnn -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaAnn -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SchemaAnn -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaAnn -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaAnn -> m SchemaAnn Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaAnn -> m SchemaAnn Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaAnn -> m SchemaAnn Source # | |||||
| Generic SchemaAnn Source # | |||||
Defined in PlutusTx.Blueprint.Schema.Annotation Associated Types
| |||||
| Show SchemaAnn Source # | |||||
| Eq SchemaAnn Source # | |||||
| Ord SchemaAnn Source # | |||||
Defined in PlutusTx.Blueprint.Schema.Annotation | |||||
| Lift SchemaAnn Source # | |||||
| type Rep SchemaAnn Source # | |||||
Defined in PlutusTx.Blueprint.Schema.Annotation type Rep SchemaAnn = D1 ('MetaData "SchemaAnn" "PlutusTx.Blueprint.Schema.Annotation" "plutus-tx-1.60.0.0-2VI8qZOpowK2Zo3DTnqORk" 'False) (C1 ('MetaCons "MkSchemaAnnTitle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaTitle)) :+: (C1 ('MetaCons "MkSchemaAnnDescription" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaDescription)) :+: C1 ('MetaCons "MkSchemaAnnComment" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SchemaComment)))) | |||||
newtype SchemaTitle Source #
An annotation for the "title" schema attribute.
This annotation could be attached to a type or constructor:
{-# ANN type MyFoo (SchemaTitle "My Foo Title") #-}
{-# ANN MkMyFoo (SchemaTitle Title) #-}
newtype MyFoo = MkMyFoo Int
Constructors
| SchemaTitle | |
Fields | |
Instances
| ToJSON SchemaTitle Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods toJSON :: SchemaTitle -> Value toEncoding :: SchemaTitle -> Encoding toJSONList :: [SchemaTitle] -> Value toEncodingList :: [SchemaTitle] -> Encoding omitField :: SchemaTitle -> Bool | |
| Data SchemaTitle Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaTitle -> c SchemaTitle Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaTitle Source # toConstr :: SchemaTitle -> Constr Source # dataTypeOf :: SchemaTitle -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaTitle) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaTitle) Source # gmapT :: (forall b. Data b => b -> b) -> SchemaTitle -> SchemaTitle Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaTitle -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaTitle -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SchemaTitle -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaTitle -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaTitle -> m SchemaTitle Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaTitle -> m SchemaTitle Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaTitle -> m SchemaTitle Source # | |
| Show SchemaTitle Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation | |
| Eq SchemaTitle Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods (==) :: SchemaTitle -> SchemaTitle -> Bool Source # (/=) :: SchemaTitle -> SchemaTitle -> Bool Source # | |
| Ord SchemaTitle Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods compare :: SchemaTitle -> SchemaTitle -> Ordering Source # (<) :: SchemaTitle -> SchemaTitle -> Bool Source # (<=) :: SchemaTitle -> SchemaTitle -> Bool Source # (>) :: SchemaTitle -> SchemaTitle -> Bool Source # (>=) :: SchemaTitle -> SchemaTitle -> Bool Source # max :: SchemaTitle -> SchemaTitle -> SchemaTitle Source # min :: SchemaTitle -> SchemaTitle -> SchemaTitle Source # | |
| Lift SchemaTitle Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods lift :: Quote m => SchemaTitle -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SchemaTitle -> Code m SchemaTitle Source # | |
newtype SchemaDescription Source #
An annotation for the "description" schema attribute.
This annotation could be attached to a type or constructor:
{-# ANN type MyFoo (SchemaDescription "My Foo Description") #-}
{-# ANN MkMyFoo (SchemaDescription Description) #-}
newtype MyFoo = MkMyFoo Int
Constructors
| SchemaDescription | |
Fields | |
Instances
| ToJSON SchemaDescription Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods toJSON :: SchemaDescription -> Value toEncoding :: SchemaDescription -> Encoding toJSONList :: [SchemaDescription] -> Value toEncodingList :: [SchemaDescription] -> Encoding omitField :: SchemaDescription -> Bool | |
| Data SchemaDescription Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaDescription -> c SchemaDescription Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaDescription Source # toConstr :: SchemaDescription -> Constr Source # dataTypeOf :: SchemaDescription -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaDescription) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaDescription) Source # gmapT :: (forall b. Data b => b -> b) -> SchemaDescription -> SchemaDescription Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaDescription -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaDescription -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SchemaDescription -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaDescription -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaDescription -> m SchemaDescription Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaDescription -> m SchemaDescription Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaDescription -> m SchemaDescription Source # | |
| Show SchemaDescription Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation | |
| Eq SchemaDescription Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods (==) :: SchemaDescription -> SchemaDescription -> Bool Source # (/=) :: SchemaDescription -> SchemaDescription -> Bool Source # | |
| Ord SchemaDescription Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods compare :: SchemaDescription -> SchemaDescription -> Ordering Source # (<) :: SchemaDescription -> SchemaDescription -> Bool Source # (<=) :: SchemaDescription -> SchemaDescription -> Bool Source # (>) :: SchemaDescription -> SchemaDescription -> Bool Source # (>=) :: SchemaDescription -> SchemaDescription -> Bool Source # max :: SchemaDescription -> SchemaDescription -> SchemaDescription Source # min :: SchemaDescription -> SchemaDescription -> SchemaDescription Source # | |
| Lift SchemaDescription Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods lift :: Quote m => SchemaDescription -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SchemaDescription -> Code m SchemaDescription Source # | |
newtype SchemaComment Source #
An annotation for the "$comment" schema attribute.
This annotation could be attached to a type or constructor:
{-# ANN type MyFoo (SchemaComment "My Foo Comment") #-}
{-# ANN MkMyFoo (SchemaComment Comment) #-}
newtype MyFoo = MkMyFoo Int
Constructors
| SchemaComment | |
Fields | |
Instances
| ToJSON SchemaComment Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods toJSON :: SchemaComment -> Value toEncoding :: SchemaComment -> Encoding toJSONList :: [SchemaComment] -> Value toEncodingList :: [SchemaComment] -> Encoding omitField :: SchemaComment -> Bool | |
| Data SchemaComment Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SchemaComment -> c SchemaComment Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SchemaComment Source # toConstr :: SchemaComment -> Constr Source # dataTypeOf :: SchemaComment -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SchemaComment) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SchemaComment) Source # gmapT :: (forall b. Data b => b -> b) -> SchemaComment -> SchemaComment Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SchemaComment -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SchemaComment -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SchemaComment -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SchemaComment -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SchemaComment -> m SchemaComment Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaComment -> m SchemaComment Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SchemaComment -> m SchemaComment Source # | |
| Show SchemaComment Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation | |
| Eq SchemaComment Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods (==) :: SchemaComment -> SchemaComment -> Bool Source # (/=) :: SchemaComment -> SchemaComment -> Bool Source # | |
| Ord SchemaComment Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods compare :: SchemaComment -> SchemaComment -> Ordering Source # (<) :: SchemaComment -> SchemaComment -> Bool Source # (<=) :: SchemaComment -> SchemaComment -> Bool Source # (>) :: SchemaComment -> SchemaComment -> Bool Source # (>=) :: SchemaComment -> SchemaComment -> Bool Source # max :: SchemaComment -> SchemaComment -> SchemaComment Source # min :: SchemaComment -> SchemaComment -> SchemaComment Source # | |
| Lift SchemaComment Source # | |
Defined in PlutusTx.Blueprint.Schema.Annotation Methods lift :: Quote m => SchemaComment -> m Exp Source # liftTyped :: forall (m :: Type -> Type). Quote m => SchemaComment -> Code m SchemaComment Source # | |