Merge pull request #138 from K0Te/fix-readme
Fix LeftOuterJoin example in README.
This commit is contained in:
commit
c9d643878c
@ -157,8 +157,8 @@ However, you may want your results to include people who don't have any blog pos
|
|||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
select $
|
select $
|
||||||
from $ \(p `LeftOuterJoin`` mb) -> do
|
from $ \(p `LeftOuterJoin` mb) -> do
|
||||||
on (p ^. PersonId ==. mb ?. BlogPostAuthorId)
|
on (just (p ^. PersonId) ==. mb ?. BlogPostAuthorId)
|
||||||
orderBy [asc (p ^. PersonName), asc (mb ?. BlogPostTitle)]
|
orderBy [asc (p ^. PersonName), asc (mb ?. BlogPostTitle)]
|
||||||
return (p, mb)
|
return (p, mb)
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user