Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
pattern
DerivAnyclass :: DerivStrategyhaskell-src-exts-simple Language.Haskell.Exts.Simple.Syntax No documentation available.
-
heist Heist.Compiled Similar to mapSplices in interpreted mode. Gets a runtime list of items and applies a compiled runtime splice function to each element of the list.
-
heist Heist.Compiled More powerful version of manyWithSplices that lets you also define attribute splices.
-
heist Heist.Compiled Like withSplices, but evaluates the splice repeatedly for each element in a list generated at runtime.
ManyComponents :: [component] -> OneOrManyComponents componenthie-bios HIE.Bios.Config.YAML No documentation available.
data
OneOrManyComponents componenthie-bios HIE.Bios.Config.YAML No documentation available.
-
hie-bios HIE.Bios.Types No documentation available.
-
hledger-web Hledger.Web.Import Get many records by their respective identifiers, if available.
Example usage
With schema-1 and dataset-1:getUsers :: MonadIO m => ReaderT SqlBackend m (Map (Key User) User) getUsers = getMany allkeys
musers <- getUsers
The above query when applied on dataset-1, will get these records:+----+-------+-----+ | id | name | age | +----+-------+-----+ | 1 | SPJ | 40 | +----+-------+-----+ | 2 | Simon | 41 | +----+-------+-----+
-
hledger-web Hledger.Web.Import Same as insertMany_, but takes an Entity instead of just a record. Useful when migrating data from one entity to another and want to preserve ids. The MongoDB, PostgreSQL, SQLite and MySQL backends insert all records in one database query.
Example usage
With schema-1 and dataset-1,insertUserEntityMany :: MonadIO m => ReaderT SqlBackend m () insertUserEntityMany = insertEntityMany [SnakeEntity, EvaEntity]
The above query when applied on dataset-1, will produce this:+-----+------+-----+ |id |name |age | +-----+------+-----+ |1 |SPJ |40 | +-----+------+-----+ |2 |Simon |41 | +-----+------+-----+ |3 |Snake |38 | +-----+------+-----+ |4 |Eva |38 | +-----+------+-----+
-
hledger-web Hledger.Web.Import Create multiple records in the database and return their Keys. If you don't need the inserted Keys, use insertMany_. The MongoDB and PostgreSQL backends insert all records and retrieve their keys in one database query. The SQLite and MySQL backends use the slow, default implementation of mapM insert.
Example usage
with schema-1 and dataset-1,insertUsers :: MonadIO m => ReaderT SqlBackend m [Key User] insertUsers = insertMany [User "John" 30, User "Nick" 32, User "Jane" 20]
userIds <- insertUsers
The above query when applied on dataset-1, will produce this:+-----+------+-----+ |id |name |age | +-----+------+-----+ |1 |SPJ |40 | +-----+------+-----+ |2 |Simon |41 | +-----+------+-----+ |3 |John |30 | +-----+------+-----+ |4 |Nick |32 | +-----+------+-----+ |5 |Jane |20 | +-----+------+-----+