I h8 hlint

This commit is contained in:
SJost 2019-02-22 18:50:46 +01:00
parent 8dae9eb1d4
commit d9b11bc9a4

View File

@ -636,8 +636,8 @@ userTableQuery :: UserTableWhere -> UserTableExpr
, E.SqlExpr (E.Value UTCTime)
, E.SqlExpr (E.Value (Maybe CourseUserNoteId)))
userTableQuery whereClause t@((user `E.InnerJoin` participant) `E.LeftOuterJoin` note) = do
E.on $ (E.just $ participant E.^. CourseParticipantUser) E.==. note E.?. CourseUserNoteUser
E.on $ participant E.^. CourseParticipantUser E.==. user E.^. UserId
E.on $ E.just (participant E.^. CourseParticipantUser) E.==. note E.?. CourseUserNoteUser
E.on $ participant E.^. CourseParticipantUser E.==. user E.^. UserId
E.where_ $ whereClause t
return (user, participant E.^. CourseParticipantRegistration, note E.?. CourseUserNoteId)
@ -687,7 +687,7 @@ makeCourseUserTable whereClause colChoices psValidator =
let dbtIdent = "courseUsers" :: Text
dbtStyle = def
dbtSQLQuery = userTableQuery whereClause
dbtRowKey = (\((user `E.InnerJoin` _participant) `E.LeftOuterJoin` _note) -> user E.^. UserId)
dbtRowKey ((user `E.InnerJoin` _participant) `E.LeftOuterJoin` _note) = user E.^. UserId
dbtProj = return -- . dbrOutput -- NOT SURE
dbtColonnade = colChoices
dbtSorting = Map.fromList [] -- TODO