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.
-
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. throwMonoid :: Monoid a => e -> Exceptional e aexplicit-exception Control.Monad.Exception.Asynchronous.Lazy No documentation available.
throwMonoidT :: forall (m :: Type -> Type) a e . (Monad m, Monoid a) => e -> ExceptionalT e m aexplicit-exception Control.Monad.Exception.Asynchronous.Lazy No documentation available.
fromSynchronousMonoid :: Monoid a => Exceptional e a -> Exceptional e aexplicit-exception Control.Monad.Exception.Asynchronous.Strict No documentation available.
-
explicit-exception Control.Monad.Exception.Asynchronous.Strict No documentation available.
-
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. throwMonoid :: Monoid a => e -> Exceptional e aexplicit-exception Control.Monad.Exception.Asynchronous.Strict No documentation available.
throwMonoidT :: forall (m :: Type -> Type) a e . (Monad m, Monoid a) => e -> ExceptionalT e m aexplicit-exception Control.Monad.Exception.Asynchronous.Strict No documentation available.
-
explicit-exception Control.Monad.Exception.Synchronous No documentation available.
type
CancellativeMonoid m = (Monoid m, Cancellative m)monoid-subclasses Data.Monoid.Cancellative No documentation available.