From 2ba99eaca89a36d1616ed76f8edbe3f9ea1b2c1e Mon Sep 17 00:00:00 2001 From: tomjaguarpaw Date: Fri, 18 Jun 2021 20:56:21 +0100 Subject: [PATCH] Fix inner join example (#50) --- docs/concepts/queries.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/queries.rst b/docs/concepts/queries.rst index 1027acc..8716f6a 100644 --- a/docs/concepts/queries.rst +++ b/docs/concepts/queries.rst @@ -194,7 +194,7 @@ and this query can be written in Rel8 as:: authorForBlogPost :: BlogPost Expr -> Query (Author Expr) authorForBlogPost blogPost = - filter ((blogPostAuthorId blogPost ==.) authorId author) =<< + filter ((blogPostAuthorId blogPost ==.) . authorId) =<< each authorSchema While this is a little more code over all, in our experience this style