Fix type error.

This commit is contained in:
Kei Hibino 2013-07-03 22:58:35 +09:00
parent 5bdddd043f
commit 9a4b5e999f

View File

@ -43,12 +43,13 @@ allAccount =
| a <- query account
]
join1 :: Relation () (Employee, Department)
join1 =
relation $
[ e >< d
| e <- query employee
, d <- query department
, () <- on $ e ! Employee.deptId' .=. d ! Department.deptId'
, () <- on $ e ! Employee.deptId' .=. just (d ! Department.deptId')
]
main :: IO ()