Skip to content

Commit

Permalink
Fix typos in the documentation of Rel8.Expr.Eq.(/=.) (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkaracha authored Mar 5, 2024
1 parent 5959c8d commit 77fb0a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rel8/Expr/Eq.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ infix 4 ==.
-- | Test if two expressions are different (not equal).
--
-- This corresponds to the SQL @IS DISTINCT FROM@ operator, and will return
-- @false@ when comparing two @null@ values. This differs from ordinary @=@
-- which would return @null@. This operator is closer to Haskell's '=='
-- operator. For an operator identical to SQL @=@, see '/=?'.
-- @false@ when comparing two @null@ values. This differs from ordinary @<>@
-- which would return @null@. This operator is closer to Haskell's '/='
-- operator. For an operator identical to SQL @<>@, see '/=?'.
(/=.) :: forall a. Sql DBEq a => Expr a -> Expr a -> Expr Bool
(/=.) = case nullable @a of
Null -> \ma mb -> isNull ma `ne` isNull mb ||. ma /=? mb
Expand Down

0 comments on commit 77fb0a3

Please sign in to comment.