lorentz-0.6.1: EDSL for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Lorentz.UStore.Doc

Description

Autodoc for UStore.

Synopsis

Documentation

class Typeable template => UStoreTemplateHasDoc template where Source #

Information for UStore template required for documentation.

You only need to instantiate this for templates used directly in UStore, nested subtemplates do not need this instance.

Minimal complete definition

ustoreTemplateDocDescription

Methods

ustoreTemplateDocName :: Text Source #

UStore template name as it appears in documentation.

Should be only 1 word.

default ustoreTemplateDocName :: (Generic template, KnownSymbol (GenericTypeName template)) => Text Source #

ustoreTemplateDocDescription :: Markdown Source #

Description of template.

ustoreTemplateDocContents :: Markdown Source #

Description of template entries.

ustoreTemplateDocDependencies :: [SomeTypeWithDoc] Source #

class KnownUStoreMarker marker => UStoreMarkerHasDoc (marker :: UStoreMarkerType) where Source #

Instantiated for documented UStore markers.

Methods

ustoreMarkerKeyEncoding :: Text -> Text Source #

Specifies key encoding.

You accept description of field name, and should return how is it encoded as key of big_map bytes bytes.

Instances

Instances details
UStoreMarkerHasDoc UMarkerPlainField Source # 
Instance details

Defined in Lorentz.UStore.Doc

data DUStoreTemplate where Source #

Constructors

DUStoreTemplate :: UStoreTemplateHasDoc template => Proxy template -> DUStoreTemplate 

Instances

Instances details
Eq DUStoreTemplate Source # 
Instance details

Defined in Lorentz.UStore.Doc

Ord DUStoreTemplate Source # 
Instance details

Defined in Lorentz.UStore.Doc

DocItem DUStoreTemplate Source # 
Instance details

Defined in Lorentz.UStore.Doc

Associated Types

type DocItemPlacement DUStoreTemplate :: DocItemPlacementKind #

type DocItemReferenced DUStoreTemplate :: DocItemReferencedKind #

type DocItemPlacement DUStoreTemplate Source # 
Instance details

Defined in Lorentz.UStore.Doc

type DocItemReferenced DUStoreTemplate Source # 
Instance details

Defined in Lorentz.UStore.Doc

dUStoreTemplateRef :: DUStoreTemplate -> Markdown Source #

Make a reference to given UStore template description.

Orphan instances

UStoreTemplateHasDoc template => TypeHasDoc (UStore template) Source # 
Instance details

Associated Types

type TypeDocFieldDescriptions (UStore template) :: FieldDescriptions #

Methods

typeDocName :: Proxy (UStore template) -> Text #

typeDocMdDescription :: Markdown #

typeDocMdReference :: Proxy (UStore template) -> WithinParens -> Markdown #

typeDocDependencies :: Proxy (UStore template) -> [SomeDocDefinitionItem] #

typeDocHaskellRep :: TypeDocHaskellRep (UStore template) #

typeDocMichelsonRep :: TypeDocMichelsonRep (UStore template) #