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.
runUnixClient :: ClientSettingsUnix -> (AppDataUnix -> IO a) -> IO aconduit-extra Data.Conduit.Network.Unix Run an Application by connecting to the specified server.
runUnixServer :: ServerSettingsUnix -> (AppDataUnix -> IO ()) -> IO aconduit-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.
cfix :: Comonad w => (w a -> a) -> w acomonad Control.Comonad Comonadic fixed point à la Dominic Orchard
kfix :: ComonadApply w => w (w a -> a) -> w acomonad Control.Comonad Comonadic fixed point à la Kenneth Foner: This is the evaluate function from his "Getting a Quick Fix on Comonads" talk.
wfix :: Comonad w => w (w a -> a) -> acomonad Control.Comonad Comonadic fixed point à la David Menendez
toFKNameInfixed :: Text -> EntityNameHS -> ConstraintNameHS -> Textpersistent Database.Persist.Quasi.PersistSettings.Internal No documentation available.
newtype
EntityWithPrefix (prefix :: Symbol) recordpersistent 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.EntityWithPrefix :: Entity record -> EntityWithPrefix (prefix :: Symbol) recordpersistent Database.Persist.Sql No documentation available.
-
persistent Database.Persist.Sql Used when determining how to prefix a column name in a WHERE clause.
PrefixExcluded :: FilterTablePrefixpersistent 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.