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.
-
postgresql-simple Database.PostgreSQL.Simple.Ok a way to reify a list of exceptions into a single exception
ManyErrors :: [SomeException] -> ManyErrorspostgresql-simple Database.PostgreSQL.Simple.Ok No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.ToField Concatenate a series of rendering actions.
-
explicit-exception Control.Monad.Exception.Asynchronous.Lazy We advise to use the Endo Monoid when you want to read a series of characters into a list. This means you use the difference lists technique in order to build the list, which is efficient.
import Data.Monoid (Endo, appEndo, ) import Control.Exception (try, ) import qualified Control.Monad.Exception.Synchronous as Sync
fmap (flip appEndo []) $ manyMonoidT (fromSynchronousMonoidT $ fmap (Endo . (:)) $ Sync.fromEitherT $ try getChar)
If you want Lazy IO you must additionally convert getChar to LazyIO monad. -
explicit-exception Control.Monad.Exception.Asynchronous.Lazy Deprecated: use manyMonoidT with appropriate Monad like LazyIO and result Monoid like Endo instead
-
explicit-exception Control.Monad.Exception.Asynchronous.Strict We advise to use the Endo Monoid when you want to read a series of characters into a list. This means you use the difference lists technique in order to build the list, which is efficient.
import Data.Monoid (Endo, appEndo, ) import Control.Exception (try, ) import qualified Control.Monad.Exception.Synchronous as Sync
fmap (flip appEndo []) $ manyMonoidT (fromSynchronousMonoidT $ fmap (Endo . (:)) $ Sync.fromEitherT $ try getChar)
If you want Lazy IO you must additionally convert getChar to LazyIO monad. -
explicit-exception Control.Monad.Exception.Asynchronous.Strict Deprecated: use manyMonoidT with appropriate Monad like LazyIO and result Monoid like Endo instead
-
explicit-exception Control.Monad.Exception.Synchronous No documentation available.
-
explicit-exception Control.Monad.Exception.Synchronous Repeat an action until an exception occurs. Initialize the result with empty and add new elements using cons (e.g. [] and (:)). The exception handler decides whether the terminating exception is re-raised (Just) or catched (Nothing).
biany :: Bifoldable t => (a -> Bool) -> (b -> Bool) -> t a b -> Boolrio RIO.Prelude Determines whether any element of the structure satisfies its appropriate predicate argument. Empty structures yield False.
Examples
Basic usage:>>> biany even isDigit (27, 't') False
>>> biany even isDigit (27, '8') True
>>> biany even isDigit (26, 't') True
>>> biany even isDigit (Left 27) False
>>> biany even isDigit (Left 26) True
>>> biany even isDigit (BiList [27, 53] ['t', '8']) True
Empty structures yield False:>>> biany even isDigit (BiList [] []) False