Hoogle Search

Within LTS Haskell 24.20 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. (>.) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Filter v

    persistent Database.Persist

    Greater-than check.

    Examples

    selectGreaterAge :: MonadIO m => ReaderT SqlBackend m [Entity User]
    selectGreaterAge = selectList [UserAge >. 40 ] []
    
    The above query when applied on dataset-1, will produce this:
    +-----+-----+-----+
    |id   |name |age  |
    +-----+-----+-----+
    |2    |Simon|41   |
    +-----+-----+-----+
    

  2. (>=.) :: forall v typ . PersistField typ => EntityField v typ -> typ -> Filter v

    persistent Database.Persist

    Greater-than or equal check.

    Examples

    selectGreaterEqualAge :: MonadIO m => ReaderT SqlBackend m [Entity User]
    selectGreaterEqualAge = selectList [UserAge >=. 41 ] []
    
    The above query when applied on dataset-1, will produce this:
    +-----+-----+-----+
    |id   |name |age  |
    +-----+-----+-----+
    |2    |Simon|41   |
    +-----+-----+-----+
    

  3. (||.) :: [Filter v] -> [Filter v] -> [Filter v]

    persistent Database.Persist

    The OR of two lists of filters. For example:

    selectList
    ([ PersonAge >. 25
    , PersonAge <. 30 ] ||.
    [ PersonIncome >. 15000
    , PersonIncome <. 25000 ])
    []
    
    will filter records where a person's age is between 25 and 30 or a person's income is between (15000 and 25000). If you are looking for an (&&.) operator to do (A AND B AND (C OR D)) you can use the (++) operator instead as there is no (&&.). For example:
    selectList
    ([ PersonAge >. 25
    , PersonAge <. 30 ] ++
    ([PersonCategory ==. 1] ||.
    [PersonCategory ==. 5]))
    []
    
    will filter records where a person's age is between 25 and 30 and (person's category is either 1 or 5).

  4. (>.>) :: (a -> b) -> (b -> c) -> a -> c

    ghc GHC.Core.Map.Expr

    No documentation available.

  5. (>.>) :: (a -> b) -> (b -> c) -> a -> c

    ghc GHC.Data.TrieMap

    No documentation available.

  6. (<.>) :: HsWrapper -> HsWrapper -> HsWrapper

    ghc GHC.Tc.Types.Evidence

    No documentation available.

  7. (-<.>) :: MonadThrow m => Path b File -> PosixString -> m (Path b File)

    path OsPath.Posix

    Deprecated: Please use replaceExtension instead.

  8. (<.>) :: MonadThrow m => Path b File -> PosixString -> m (Path b File)

    path OsPath.Posix

    Deprecated: Please use addExtension instead.

  9. (-<.>) :: MonadThrow m => Path b File -> WindowsString -> m (Path b File)

    path OsPath.Windows

    Deprecated: Please use replaceExtension instead.

  10. (<.>) :: MonadThrow m => Path b File -> WindowsString -> m (Path b File)

    path OsPath.Windows

    Deprecated: Please use addExtension instead.

Page 105 of many | Previous | Next