Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/drasil-lang/lib/Language/Drasil.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ module Language.Drasil (
-- We also use 'NounPhrase's to record the proper pluralization and capitalization of terms.

-- Language.Drasil.Sentence
, Sentence(..), SentenceStyle(..), TermCapitalization(..), RefInfo(..), (+:+), (+:+.), (+:), (!.), capSent, headSent
, Sentence(..), SentenceStyle(..), TermCapitalization(..), RefInfo(..), (+:+), (+:+.), (+:), (!.), capSent
, ch, eS, eS', sC, sDash, sParen
-- Language.Drasil.Sentence.Generators
, fromSource, fterms, getTandS, checkValidStr
Expand Down Expand Up @@ -313,7 +313,7 @@ import Language.Drasil.Space (Space(..), RealInterval(..), Inclusive(..),
RTopology(..), DomainDesc(..), ContinuousDomainDesc, DiscreteDomainDesc,
getActorName, getInnerSpace, HasSpace(..), mkFunction, Primitive)
import Language.Drasil.Sentence (Sentence(..), SentenceStyle(..), TermCapitalization(..), RefInfo(..), (+:+),
(+:+.), (+:), (!.), capSent, headSent, ch, eS, eS', sC, sDash, sParen)
(+:+.), (+:), (!.), capSent, ch, eS, eS', sC, sDash, sParen)
import Language.Drasil.Sentence.Fold
import Language.Drasil.Sentence.Generators (fromSource, fterms, getTandS, checkValidStr)
import Language.Drasil.Reference (Reference(..), namedRef, complexRef, namedComplexRef, ref, refS, HasReference(..))
Expand Down
6 changes: 1 addition & 5 deletions code/drasil-lang/lib/Language/Drasil/Sentence.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Language.Drasil.Sentence (
-- ** Context Types
SentenceStyle(..), RefInfo(..), TermCapitalization(..),
-- * Functions
(+:+), (+:+.), (+:), (!.), capSent, headSent, ch, eS, eS', sC, sDash, sParen,
(+:+), (+:+.), (+:), (!.), capSent, ch, eS, eS', sC, sDash, sParen,
sentencePlural, sentenceShort,
sentenceTerm,
sdep, lnames, lnames'
Expand Down Expand Up @@ -148,10 +148,6 @@ capSent (S (s:ss)) = S (toUpper s : ss)
capSent (a :+: b) = capSent a :+: b
capSent x = x

-- | Helper which creates a Header with size s of the 'Sentence'.
headSent :: Int -> Sentence -> Sentence
headSent s x = S (concat (replicate s "#")) :+: S " " :+: x

-- | Helpers for extracting references -----------------------------------------

-- | Generic traverse of all positions that could lead to /symbolic/ 'UID's from 'Sentence's.
Expand Down
Loading