Skip to content
Merged
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
12 changes: 9 additions & 3 deletions flex/resResolveFlex.flex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TaskData = ResolutionInst
module TaskSettings where

import LogicTasks.Config (dResConf, ResolutionConfig(..))
import Control.OutputCapable.Blocks (LangM, OutputCapable)
import Control.OutputCapable.Blocks

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explizite import-Listen sind allgemein schon besser.

import LogicTasks.Semantics.Resolve (verifyQuiz)


Expand All @@ -30,8 +30,14 @@ resConf :: ResolutionConfig
resConf = dResConf

validateSettings :: OutputCapable m => LangM m
validateSettings = verifyQuiz resConf

validateSettings
| isNotPrefilled prefillSelect =
refuse $ indent $ translate $ do
german "Es ist nichts vorausgefüllt!"
english "Nothing is prefilled!"
| otherwise = verifyQuiz resConf
where
isNotPrefilled (a,b,c) = not (a || b || c)

=============================================

Expand Down
Loading