| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.Code.Imperative.ConceptMatch
Description
Contains functions related to the choice of concept matches.
Synopsis
- chooseConcept :: Choices -> State [Sentence] MatchedConceptMap
- conceptToGOOL :: SharedProg r => CodeConcept -> SValue r
Documentation
chooseConcept :: Choices -> State [Sentence] MatchedConceptMap Source #
Concretizes the ConceptMatchMap in Choices to a MatchedConceptMap.
Currently we don't have any Choices that would prevent a CodeConcept from
being mapped, so we just take the head of the list of CodeConcepts
The ConceptMatchMap from choices is passed to chooseConcept' internally, this way
any CodeConcept list can be matched to its appropiate UID.
conceptToGOOL :: SharedProg r => CodeConcept -> SValue r Source #
Translates a CodeConcept into GOOL.