diff --git a/src/Handler/Course.hs b/src/Handler/Course.hs index 03cbe03c5..e843ade32 100644 --- a/src/Handler/Course.hs +++ b/src/Handler/Course.hs @@ -122,7 +122,7 @@ makeCourseTable whereClause colChoices psValidator = do return (course, participants, registered, school) dbtProj :: DBRow _ -> MaybeT (ReaderT SqlBackend (HandlerT UniWorX IO)) CourseTableData dbtProj = traverse $ \(course, E.Value participants, E.Value registered, school) -> return (course, participants, registered, school) - fmap snd $ dbTable psValidator DBTable + snd <$> dbTable psValidator DBTable { dbtSQLQuery , dbtColonnade = colChoices , dbtProj