drasil-lang-0.1.60.0: A framework for code and document generation for scientific software - Language SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Drasil.ShortName

Description

Short names are used for displaying references.

Synopsis

Documentation

data ShortName Source #

Used for holding the short form of a name (as a Sentence with a wrapper).

Instances

Instances details
Generic ShortName Source # 
Instance details

Defined in Language.Drasil.ShortName

Associated Types

type Rep ShortName :: Type -> Type #

HasChunkRefs ShortName Source # 
Instance details

Defined in Language.Drasil.ShortName

Methods

chunkRefs :: ShortName -> Set UID #

type Rep ShortName Source # 
Instance details

Defined in Language.Drasil.ShortName

type Rep ShortName = D1 ('MetaData "ShortName" "Language.Drasil.ShortName" "drasil-lang-0.1.60.0-GSVjWL6zqIJGx21JJ17VJN" 'True) (C1 ('MetaCons "ShortNm" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sentence)))

shortname' :: Sentence -> ShortName Source #

Smart constructor for making a Sentence into a ShortName.

getSentSN :: ShortName -> Sentence Source #

Pulls the short form (as a Sentence) out of a ShortName.

class HasShortName s where Source #

A ShortName is the text to be displayed for a link.

Used for referencing within a document that can include symbols and whatnot if required. Visible in the typeset documents (pdf).

Methods

shortname :: s -> ShortName Source #

Instances

Instances details
HasShortName Citation Source #

Finds ShortName of the Citation.

Instance details

Defined in Language.Drasil.Chunk.Citation

HasShortName ConceptInstance Source #

Finds the ShortName contained in a ConceptInstance.

Instance details

Defined in Language.Drasil.Chunk.Concept.Core

HasShortName LabelledContent Source #

Find the shortname of the reference address used for the LabelledContent.

Instance details

Defined in Language.Drasil.Document.Core

HasShortName DecRef Source #

Finds the shortname of the reference address used for the Reference.

Instance details

Defined in Language.Drasil.Document.DecoratedReference

HasShortName Reference Source #

Finds the shortname of the reference address used for the Reference.

Instance details

Defined in Language.Drasil.Document.Reference

HasShortName Section Source #

Finds the short name of a Section.

Instance details

Defined in Language.Drasil.Document.Sections