| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Chunk.CommonIdea
Description
Contains the common idea type and respective constructors. SHOULD BE DEPRECATED. Some of the uses (for program name) should have its own chunk type. Others need examined.
Synopsis
- data CI
- commonIdea :: UID -> NP -> String -> [IdeaDict] -> CI
- prependAbrv :: CommonIdea c => c -> String -> String
Common Idea datatype
The common idea (with NounPhrase) data type. It must have a UID,
NounPhrase for its term, an abbreviation (String), and a domain ([UID]).
It is similar to IdeaDict and IdeaDict in the sense that these are for things worth naming,
but this type also carries an abbreviation and related domains of knowledge.
Ex. The term "Operating System" has the abbreviation OS and comes from the domain of computer science.
Instances
| Generic CI Source # | |
| HasChunkRefs CI Source # | |
| HasUID CI Source # | |
Defined in Language.Drasil.Chunk.CommonIdea | |
| Idea CI Source # | Finds the idea of a |
| NamedIdea CI Source # | |
| CommonIdea CI Source # | Finds the idea of a |
| ConceptDomain CI Source # | Finds the domain of a |
| type Rep CI Source # | |
Defined in Language.Drasil.Chunk.CommonIdea type Rep CI = D1 ('MetaData "CI" "Language.Drasil.Chunk.CommonIdea" "drasil-lang-0.1.60.0-GSVjWL6zqIJGx21JJ17VJN" 'False) (C1 ('MetaCons "CI" 'PrefixI 'True) (S1 ('MetaSel ('Just "_nc'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IdeaDict) :*: (S1 ('MetaSel ('Just "_ab") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Just "cdom'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [UID])))) | |
Constructors
Functions
prependAbrv :: CommonIdea c => c -> String -> String Source #
Prepends the abbreviation from a CommonIdea to a String.