chore: fix hlint

This commit is contained in:
Gregor Kleen 2019-09-13 13:31:53 +02:00
parent 484fa1cc63
commit 7e19c45684
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ examOfficeOptOutForm uid cid (fromMaybe Set.empty -> template) = renderWForm For
schools <- liftHandlerT . runDB . E.select $ courseExamOfficeSchools (E.val uid) (E.val cid)
res <- fmap sequence . forM schools $ \(Entity ssh School{..}, E.Value isForced)
-> fmap (ssh, ) <$> (bool wpopt wforcedJust isForced) checkBoxField (fslI schoolName) (Just $ ssh `Set.notMember` template)
-> fmap (ssh, ) <$> bool wpopt wforcedJust isForced checkBoxField (fslI schoolName) (Just $ ssh `Set.notMember` template)
return $ res <&> setOf (folded . filtered (not . view _2) . _1)

View File

@ -143,7 +143,7 @@ embedRenderMessage ''UniWorX ''ExamUserAction id
data ExamUserActionData = ExamUserMarkSynchronisedData
data ExamUserCsvExportData = ExamUserCsvExportData
newtype ExamUserCsvExportData = ExamUserCsvExportData
{ csvEUserMarkSynchronised :: Bool
} deriving (Eq, Ord, Read, Show, Generic, Typeable)

View File

@ -29,4 +29,4 @@ courseExamOfficeSchools user _course = E.from $ \(school `E.InnerJoin` userFunct
let forced = E.maybe E.true id $ examOfficeField E.?. ExamOfficeFieldForced
E.orderBy [E.desc forced]
return $ (school, forced)
return (school, forced)