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.

  1. getPersistMap :: PersistValue -> Either Text [(Text, PersistValue)]

    classy-prelude-yesod ClassyPrelude.Yesod

    FIXME Add documentation to that.

  2. lastMay :: MonoFoldable mono => mono -> Maybe (Element mono)

    classy-prelude-yesod ClassyPrelude.Yesod

    Safe version of lastEx. Returns Nothing instead of throwing an exception when encountering an empty monomorphic container.

  3. orElseSTM :: STM a -> STM a -> STM a

    classy-prelude-yesod ClassyPrelude.Yesod

    Synonym for orElse.

  4. persistManyFileWith :: PersistSettings -> [FilePath] -> Q Exp

    classy-prelude-yesod ClassyPrelude.Yesod

    Same as persistFileWith, but uses several external files instead of one. Splitting your Persistent definitions into multiple modules can potentially dramatically speed up compile times. The recommended file extension is .persistentmodels.

    Examples

    Split your Persistent definitions into multiple files (models1, models2), then create a new module for each new file and run mkPersist there:
    -- Model1.hs
    share
    [mkPersist sqlSettings]
    $(persistFileWith lowerCaseSettings "models1")
    
    -- Model2.hs
    share
    [mkPersist sqlSettings]
    $(persistFileWith lowerCaseSettings "models2")
    
    Use persistManyFileWith to create your migrations:
    -- Migrate.hs
    mkMigrate "migrateAll"
    $(persistManyFileWith lowerCaseSettings ["models1.persistentmodels","models2.persistentmodels"])
    
    Tip: To get the same import behavior as if you were declaring all your models in one file, import your new files as Name into another file, then export module Name. This approach may be used in the future to reduce memory usage during compilation, but so far we've only seen mild reductions. See persistent#778 and persistent#791 for more details.

  5. pollSTM :: Async a -> STM (Maybe (Either SomeException a))

    classy-prelude-yesod ClassyPrelude.Yesod

    A version of poll that can be used inside an STM transaction.

  6. retrySTM :: STM a

    classy-prelude-yesod ClassyPrelude.Yesod

    Renamed retry for unqualified export

  7. waitAnyCatchSTM :: [Async a] -> STM (Async a, Either SomeException a)

    classy-prelude-yesod ClassyPrelude.Yesod

    A version of waitAnyCatch that can be used inside an STM transaction.

  8. waitAnySTM :: [Async a] -> STM (Async a, a)

    classy-prelude-yesod ClassyPrelude.Yesod

    A version of waitAny that can be used inside an STM transaction.

  9. waitBothSTM :: Async a -> Async b -> STM (a, b)

    classy-prelude-yesod ClassyPrelude.Yesod

    A version of waitBoth that can be used inside an STM transaction.

  10. waitCatchSTM :: Async a -> STM (Either SomeException a)

    classy-prelude-yesod ClassyPrelude.Yesod

    A version of waitCatch that can be used inside an STM transaction.

Page 223 of many | Previous | Next