-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,13 @@ import Control.Lens ((^.)) | |
|
||
import Language.Drasil.Chunk.Citation (Citation) | ||
import Language.Drasil.Classes.Core (HasUID(uid), HasShortName(shortname)) | ||
import Language.Drasil.Classes (Referable(renderRef)) | ||
import Language.Drasil.Classes (CommonIdea(abrv), Referable(renderRef)) | ||
import Language.Drasil.RefProg (Reference(..), RefInfo(..)) | ||
import Language.Drasil.Sentence (Sentence(Ref)) | ||
import Language.Drasil.ShortName (shortname') | ||
|
||
shortRef :: (CommonIdea l, Referable l) => l -> Int -> Sentence | ||
shortRef l i = Ref $ Reference (l ^. uid) (renderRef l) (shortname' $ abrv l ++ show (i + 1)) None | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
JacquesCarette
Owner
|
||
|
||
makeRef2 :: (Referable l, HasShortName l) => l -> Reference | ||
makeRef2 l = Reference (l ^. uid) (renderRef l) (shortname l) None | ||
|
I couldn't find a way to get around needing this function, and it still displays a DD in the trace table as "DD: DD2", probably because of
renderRef
. Would there be a way to define a similar function indocLang
that doesn't useprepend
throughrenderRef
? @Mornix