refactor: hlint

This commit is contained in:
Wolfgang Witt 2021-03-19 13:32:47 +01:00 committed by Gregor Kleen
parent a36f0deb09
commit 25fa6ef0d7

View File

@ -412,7 +412,7 @@ examAutoOccurrence (hash -> seed) rule ExamAutoOccurrenceConfig{..} occurrences
-- ^ Only use non-ignored occurrences
-- Sort by size if specified (here increasing, since it is reversed later)
occurrences'' = case eaocIgnoreRooms of
ExamAutoOccurrenceIgnoreRooms {..} -> ((if eaoirSorted then sortOn (view _2) else id) $ Map.toList $ Map.withoutKeys occurrences' eaoirIgnored)
ExamAutoOccurrenceIgnoreRooms {..} -> (if eaoirSorted then sortOn (view _2) else id) $ Map.toList $ Map.withoutKeys occurrences' eaoirIgnored
partitionRestricted :: ([a], [(a, Natural)]) -> [(a,ExamOccurrenceCapacity)] -> ([a], [(a, Natural)])
partitionRestricted acc [] = acc