on master help sign in
Correct traverseMaybeTable, s/noTable/nothingTable/
commitb0183859d08434cdbc59feb341e9c2246fd81268 authorShane O'Brien <shane.obrien@circuithub.com> dateFri 18 Jun 2021, 16:03 (5 years ago) parent3d54aa7
1 file changed+2−1
src/Rel8/Query/Maybe.hs+2−1
src/Rel8/Query/Maybe.hs+2−1
@@ -79,7 +79,8 @@ bindMaybeTable query (MaybeTable input a) =
7979-- you also have the ability to "expand" one row into multiple rows. If the
8080-- @a -> Query b@ function returns no rows, then the resulting query will also
8181-- have no rows. However, regardless of the given @a -> Query b@ function, if
82−-- the input is @noTable@, you will always get exactly one @noTable@ back.
82+-- the input is @nothingTable@, you will always get exactly one @nothingTable@
83+-- back.
8384traverseMaybeTable :: (a -> Query b) -> MaybeTable a -> Query (MaybeTable b)
8485traverseMaybeTable query ma@(MaybeTable input _) = do
8586 MaybeTable output b <- optional (query =<< catMaybeTable ma)