Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
decker
decker
Commits
72e5c006
Commit
72e5c006
authored
Nov 23, 2016
by
Henrik Tramberend
Browse files
Fix topic exclusion
parent
8c8df064
Changes
1
Show whitespace changes
Inline
Side-by-side
app/tester.hs
View file @
72e5c006
...
...
@@ -274,7 +274,7 @@ joinPandoc list =
filterQuestions
::
[
T
.
Text
]
->
[
T
.
Text
]
->
[(
Question
,
FilePath
)]
->
[(
Question
,
FilePath
)]
filterQuestions
includeLectures
excludeTopics
questions
=
filter
(
not
.
(
flip
elem
)
excludeTopics
.
qst
Lecture
Id
.
fst
)
$
filter
(
not
.
(
flip
elem
)
excludeTopics
.
qst
Topic
Id
.
fst
)
$
filter
((
flip
elem
)
includeLectures
.
qstLectureId
.
fst
)
questions
type
GroupedQuestions
=
Map
.
HashMap
T
.
Text
(
Map
.
HashMap
T
.
Text
[(
Question
,
FilePath
)])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment