Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
ocharles committed Oct 10, 2017
1 parent 458f67a commit ca72d82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/Example.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ heavyParts = proc _ -> do
existsExample :: Query (Part Expr)
existsExample = proc _ -> do
part <- queryTable -< ()
(| exists (do otherPart <- queryTable -< ()
where_ -< partWeight otherPart >. partWeight part) |)
(| restrictExists
(do otherPart <- queryTable -< ()
where_ -< partWeight otherPart >. partWeight part) |)
returnA -< part

data Supplier f = Supplier
Expand Down

0 comments on commit ca72d82

Please sign in to comment.