Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Apr 2, 2023
1 parent 84141b0 commit 2f9f732
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Swarm/Doc/Pedagogy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,19 @@ renderTutorialProgression =
: "All used:"
: renderFullCmdList allUsed

render (cmd, tut) = T.unwords [linkifyCommand cmd, "(" <> renderTutorialTitle (tutIndex tut) (fst $ scenarioPair tut) <> ")"]
render (cmd, tut) =
T.unwords
[ linkifyCommand cmd
, "(" <> renderTutorialTitle (tutIndex tut) (fst $ scenarioPair tut) <> ")"
]
renderFullCmdList = renderList . map render . sortOn fst

infos = generateIntroductionsSequence ss
allLines = introSection <> map renderUsagesMarkdown infos

allUsed = concatMap mkTuplesForTutorial infos

mkTuplesForTutorial tut = map (\x -> (T.pack $ show x, tutIdxScenario)) $ M.keys $ novelSolutionCommands tut
mkTuplesForTutorial tut =
map (\x -> (T.pack $ show x, tutIdxScenario)) $
M.keys $
novelSolutionCommands tut
where
tutIdxScenario = tutInfo tut

infos = generateIntroductionsSequence ss

0 comments on commit 2f9f732

Please sign in to comment.