Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
(
@. ) :: Integral ix => BV -> ix -> Boolbv Data.BitVector Bit indexing. u @. i stands for the i-th bit of u.
>>> [4]2 @. 0 False
>>> [4]2 @. 1 True
(
!=. ) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Filter vclassy-prelude-yesod ClassyPrelude.Yesod Non-equality check.
Examples
selectSimon :: MonadIO m => ReaderT SqlBackend m [Entity User] selectSimon = selectList [UserName !=. "SPJ" ] []
The above query when applied on dataset-1, will produce this:+-----+-----+-----+ |id |name |age | +-----+-----+-----+ |2 |Simon|41 | +-----+-----+-----+
(
*=. ) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Update vclassy-prelude-yesod ClassyPrelude.Yesod Assign a field by multiplication (*=).
Examples
multiplyAge :: MonadIO m => ReaderT SqlBackend m () multiplyAge = updateWhere [UserName ==. "SPJ" ] [UserAge *=. 2]
The above query when applied on dataset-1, will produce this:+-----+-----+--------+ |id |name |age | +-----+-----+--------+ |1 |SPJ |40 -> 80| +-----+-----+--------+ |2 |Simon|41 | +-----+-----+--------+
(
+=. ) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Update vclassy-prelude-yesod ClassyPrelude.Yesod Assign a field by addition (+=).
Examples
addAge :: MonadIO m => ReaderT SqlBackend m () addAge = updateWhere [UserName ==. "SPJ" ] [UserAge +=. 1]
The above query when applied on dataset-1, will produce this:+-----+-----+---------+ |id |name |age | +-----+-----+---------+ |1 |SPJ |40 -> 41 | +-----+-----+---------+ |2 |Simon|41 | +-----+-----+---------+
(
-=. ) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Update vclassy-prelude-yesod ClassyPrelude.Yesod Assign a field by subtraction (-=).
Examples
subtractAge :: MonadIO m => ReaderT SqlBackend m () subtractAge = updateWhere [UserName ==. "SPJ" ] [UserAge -=. 1]
The above query when applied on dataset-1, will produce this:+-----+-----+---------+ |id |name |age | +-----+-----+---------+ |1 |SPJ |40 -> 39 | +-----+-----+---------+ |2 |Simon|41 | +-----+-----+---------+
(
/<-. ) :: forall v typ . PersistField typ => EntityField v typ -> [typ] -> Filter vclassy-prelude-yesod ClassyPrelude.Yesod Check if value is not in given list.
Examples
selectSimon :: MonadIO m => ReaderT SqlBackend m [Entity User] selectSimon = selectList [UserAge /<-. [40]] []
The above query when applied on dataset-1, will produce this:+-----+-----+-----+ |id |name |age | +-----+-----+-----+ |2 |Simon|41 | +-----+-----+-----+
(
/=. ) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Update vclassy-prelude-yesod ClassyPrelude.Yesod Assign a field by division (/=).
Examples
divideAge :: MonadIO m => ReaderT SqlBackend m () divideAge = updateWhere [UserName ==. "SPJ" ] [UserAge /=. 2]
The above query when applied on dataset-1, will produce this:+-----+-----+---------+ |id |name |age | +-----+-----+---------+ |1 |SPJ |40 -> 20 | +-----+-----+---------+ |2 |Simon|41 | +-----+-----+---------+
(
<-. ) :: forall v typ . PersistField typ => EntityField v typ -> [typ] -> Filter vclassy-prelude-yesod ClassyPrelude.Yesod Check if value is in given list.
Examples
selectUsers :: MonadIO m => ReaderT SqlBackend m [Entity User] selectUsers = selectList [UserAge <-. [40, 41]] []
The above query when applied on dataset-1, will produce this:+-----+-----+-----+ |id |name |age | +-----+-----+-----+ |1 |SPJ |40 | +-----+-----+-----+ |2 |Simon|41 | +-----+-----+-----+
selectSPJ :: MonadIO m => ReaderT SqlBackend m [Entity User] selectSPJ = selectList [UserAge <-. [40]] []
The above query when applied on dataset-1, will produce this:+-----+-----+-----+ |id |name |age | +-----+-----+-----+ |1 |SPJ |40 | +-----+-----+-----+
(
<. ) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Filter vclassy-prelude-yesod ClassyPrelude.Yesod Less-than check.
Examples
selectLessAge :: MonadIO m => ReaderT SqlBackend m [Entity User] selectLessAge = selectList [UserAge <. 41 ] []
The above query when applied on dataset-1, will produce this:+-----+-----+-----+ |id |name |age | +-----+-----+-----+ |1 |SPJ |40 | +-----+-----+-----+
(
<.> ) :: FilePath -> String -> FilePathclassy-prelude-yesod ClassyPrelude.Yesod Add an extension, even if there is already one there, equivalent to addExtension.
"/directory/path" <.> "ext" == "/directory/path.ext" "/directory/path" <.> ".ext" == "/directory/path.ext"