Fix code example of LeftOuterJoin and ?.

This commit is contained in:
Ping Chen 2019-09-07 08:56:57 +09:00 committed by GitHub
parent 83afa43b23
commit 806fe763c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,8 +157,8 @@ However, you may want your results to include people who don't have any blog pos
```haskell
select $
from $ \(p `LeftOuterJoin`` mb) -> do
on (p ^. PersonId ==. mb ?. BlogPostAuthorId)
from $ \(p `LeftOuterJoin` mb) -> do
on (just (p ^. PersonId) ==. mb ?. BlogPostAuthorId)
orderBy [asc (p ^. PersonName), asc (mb ?. BlogPostTitle)]
return (p, mb)
```