diff --git a/esqueleto.cabal b/esqueleto.cabal index a6dbc38..338cbb3 100644 --- a/esqueleto.cabal +++ b/esqueleto.cabal @@ -1,5 +1,5 @@ name: esqueleto -version: 2.1.1 +version: 2.1.2 synopsis: Type-safe EDSL for SQL queries on persistent backends. homepage: https://github.com/prowdsponsor/esqueleto license: BSD3 diff --git a/src/Database/Esqueleto/Internal/Language.hs b/src/Database/Esqueleto/Internal/Language.hs index 5817b39..54d9c5c 100644 --- a/src/Database/Esqueleto/Internal/Language.hs +++ b/src/Database/Esqueleto/Internal/Language.hs @@ -379,7 +379,7 @@ class (Functor query, Applicative query, Monad query) => -- if the @ELSE@ is omitted it will return a @NULL@. You can -- reproduce this via 'nothing'. -- - -- Since: 2.1.1 + -- /Since: 2.1.2/ case_ :: PersistField a => [(expr (Value Bool), expr (Value a))] -> expr (Value a) -> expr (Value a) -- Fixity declarations @@ -392,14 +392,20 @@ infixr 3 &&., =., +=., -=., *=., /=. infixr 2 ||., `InnerJoin`, `CrossJoin`, `LeftOuterJoin`, `RightOuterJoin`, `FullOuterJoin`, `like` -- | Syntax sugar for 'case_'. +-- +-- /Since: 2.1.2/ when_ :: expr (Value Bool) -> () -> expr a -> (expr (Value Bool), expr a) when_ cond _ expr = (cond, expr) -- | Syntax sugar for 'case_'. +-- +-- /Since: 2.1.2/ then_ :: () then_ = () -- | Syntax sugar for 'case_'. +-- +-- /Since: 2.1.2/ else_ :: expr a -> expr a else_ = id