Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Drasil.Chunk.NamedIdea
Contents
Description
The lowest level of chunks in Drasil. It all starts with an identifier and a term.
Types
data NamedChunk Source #
Used for anything worth naming. Note that a NamedChunk
does not have an acronym/abbreviation
as that's a CommonIdea
, which has its own representation. Contains
a UID
and a term that we can capitalize or pluralize (NP
).
Ex. Anything worth naming must start out somewhere. Before we can assign equations and values and symbols to something like the arm of a pendulum, we must first give it a name.
Instances
Eq NamedChunk Source # | Equal if |
Defined in Language.Drasil.Chunk.NamedIdea | |
HasUID NamedChunk Source # | Finds the |
Defined in Language.Drasil.Chunk.NamedIdea Methods uid :: Lens' NamedChunk UID Source # | |
Idea NamedChunk Source # | Finds the idea of a |
Defined in Language.Drasil.Chunk.NamedIdea | |
NamedIdea NamedChunk Source # | Finds the term ( |
Defined in Language.Drasil.Chunk.NamedIdea Methods term :: Lens' NamedChunk NP Source # |
IdeaDict
is the canonical dictionary associated to an Idea
.
Contains a NamedChunk
that could have an abbreviation (Maybe
String
).
Ex. The project name "Double Pendulum" may have the abbreviation DblPendulum.
Classes
class HasUID c => NamedIdea c where Source #
Instances
class NamedIdea c => Idea c where Source #
An Idea
is the combination of a NamedIdea
and a CommonIdea
.
In other words, it may have an acronym/abbreviation.
Instances
Constructors
nc :: String -> NP -> NamedChunk Source #
NamedChunk
constructor, takes a String
for its UID
and a term.