Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. runUnixClient :: ClientSettingsUnix -> (AppDataUnix -> IO a) -> IO a

    conduit-extra Data.Conduit.Network.Unix

    Run an Application by connecting to the specified server.

  2. runUnixServer :: ServerSettingsUnix -> (AppDataUnix -> IO ()) -> IO a

    conduit-extra Data.Conduit.Network.Unix

    Run an Application with the given settings. This function will create a new listening socket, accept connections on it, and spawn a new thread for each connection.

  3. cfix :: Comonad w => (w a -> a) -> w a

    comonad Control.Comonad

    Comonadic fixed point à la Dominic Orchard

  4. kfix :: ComonadApply w => w (w a -> a) -> w a

    comonad Control.Comonad

    Comonadic fixed point à la Kenneth Foner: This is the evaluate function from his "Getting a Quick Fix on Comonads" talk.

  5. wfix :: Comonad w => w (w a -> a) -> a

    comonad Control.Comonad

    Comonadic fixed point à la David Menendez

  6. toFKNameInfixed :: Text -> EntityNameHS -> ConstraintNameHS -> Text

    persistent Database.Persist.Quasi.PersistSettings.Internal

    No documentation available.

  7. newtype EntityWithPrefix (prefix :: Symbol) record

    persistent Database.Persist.Sql

    This newtype wrapper is useful when selecting an entity out of the database and you want to provide a prefix to the table being selected. Consider this raw SQL query:

    SELECT ??
    FROM my_long_table_name AS mltn
    INNER JOIN other_table AS ot
    ON mltn.some_col = ot.other_col
    WHERE ...
    
    We don't want to refer to my_long_table_name every time, so we create an alias. If we want to select it, we have to tell the raw SQL quasi-quoter that we expect the entity to be prefixed with some other name. We can give the above query a type with this, like:
    getStuff :: SqlPersistM [EntityWithPrefix "mltn" MyLongTableName]
    getStuff = rawSql queryText []
    
    The EntityWithPrefix bit is a boilerplate newtype wrapper, so you can remove it with unPrefix, like this:
    getStuff :: SqlPersistM [Entity MyLongTableName]
    getStuff = unPrefix @"mltn" <$> rawSql queryText []
    
    The symbol is a "type application" and requires the TypeApplications@ language extension.

  8. EntityWithPrefix :: Entity record -> EntityWithPrefix (prefix :: Symbol) record

    persistent Database.Persist.Sql

    No documentation available.

  9. data FilterTablePrefix

    persistent Database.Persist.Sql

    Used when determining how to prefix a column name in a WHERE clause.

  10. PrefixExcluded :: FilterTablePrefix

    persistent Database.Persist.Sql

    Prefix the column name with the EXCLUDED keyword. This is used with the Postgresql backend when doing ON CONFLICT DO UPDATE clauses - see the documentation on upsertWhere and upsertManyWhere.

Page 57 of many | Previous | Next