mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-13 17:32:35 +03:00
Fix type error.
This commit is contained in:
parent
5bdddd043f
commit
9a4b5e999f
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user